Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / node suites (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
apps/gitea -> apps/rithub-server; compose services/containers renamed (rithub-server-app/postgres/act-runner) with explicit project name and volume names pinned to the exact existing Docker volumes (no data loss); our own GITEA_* compose/env var names -> RIT_*; new rit-admin CLI wrapper on railyard-box; giteaSession.mjs/giteaOAuth.mjs/giteaInfo.mjs -> ritSession/ritOAuth/ritInfo across 6 apps; GiteaForgeAdapter -> RitForgeAdapter + giteaSyncService/importGiteaRepos/syncGiteaRepos -> rit* in ritgram (tsc clean); apps/console/lib/gitea.ts -> lib/ritProvision.ts; Go internal/giteaclient -> internal/ritclient in rithub-async-import (go build/test clean); new /auth/rit + /forges/rit/connect routes with /gitea back-compat aliases; locale/swagger/footer/captcha template text scrubbed of remaining "Gitea" strings. Deployed to railyard-box: old containers stopped/removed, /srv/railyard-gitea renamed to /srv/rithub-server with a symlink kept, docker compose up -d from the new path, act_runner network-alias fix for its persisted instance URL. Live-verified: docker compose config diff showed zero unintended value changes, DB row counts unchanged (19 users, 635 repos), full route regression 200/expected, 0 "gitea" in headers/bodies on every checked page, real git clone+push over HTTPS and SSH with a disposable account (deleted after). Deferred on purpose (documented in plans/railyard.md): the forge discriminator / DB column names / Postgres role+volume names (data migrations, not a naming change) and the upstream GITEA__ env-to-ini keys and X-Gitea-* wire headers (hardcoded in the vendored engine binary). See plans/railyard.md RIT-OPS/RIT-BRD entry for the full old->new map and live evidence. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
104 lines
5.3 KiB
Cheetah
104 lines
5.3 KiB
Cheetah
{{- /* og:description - a one to two sentence description of your object, maybe it only needs at most 300 bytes */ -}}
|
|
{{- /*
|
|
Railyard override (2026-11-17): the upstream default branch's og:image
|
|
pointed at a 512x512 app icon (/assets/img/logo.png), not a real OG
|
|
card, so link previews showed a tiny cropped icon. Swapped for a real
|
|
1200x630 card hosted on R2/assets.scribase.com, and added the missing
|
|
twitter:card tags for the same branch. Repo/profile/issue/diff branches
|
|
below are untouched, byte-for-byte upstream (go-gitea/gitea v1.23.8).
|
|
|
|
2026-11-17 (icon-mark revision 3 pass): swapped the og:image/
|
|
twitter:image URL to a new card built from the new two-block Rithub
|
|
mark (old card: rithub-og-1200x630-1117.png, the revision-1 "bold
|
|
white R" mark; new: rithub-og-1200x630-1118m.png) and added the
|
|
missing og:image:alt (absolute https PNG URL, width/height already
|
|
present below).
|
|
|
|
2026-11-18: swapped to rithub-og-1200x630-1118m.png, the monochrome
|
|
card matching the live monochrome glass theme (ink mark, new UI
|
|
screenshot); generator: gtm/rithub-og-card-2026-11-17/make_og_card_mono.py.
|
|
*/ -}}
|
|
{{if .PageIsUserProfile}}
|
|
<meta property="og:title" content="{{.ContextUser.DisplayName}}">
|
|
<meta property="og:type" content="profile">
|
|
<meta property="og:image" content="{{.ContextUser.AvatarLink ctx}}">
|
|
<meta property="og:url" content="{{.ContextUser.HTMLURL}}">
|
|
{{if .ContextUser.Description}}
|
|
<meta property="og:description" content="{{StringUtils.EllipsisString .ContextUser.Description 300}}">
|
|
{{end}}
|
|
{{/* 2026-11-19 (share-loops #3): twitter:card was missing entirely on
|
|
this branch, so X/Slack-style unfurlers that don't fall back to
|
|
og:image alone showed no preview at all for a shared profile link.
|
|
"summary" (not summary_large_image) since avatars are square, not
|
|
a 1200x630 card. plans/growth-loops-2026-11-19.md Rithub row #3. */}}
|
|
<meta name="twitter:card" content="summary">
|
|
<meta name="twitter:title" content="{{.ContextUser.DisplayName}}">
|
|
<meta name="twitter:image" content="{{.ContextUser.AvatarLink ctx}}">
|
|
{{else if .Repository}}
|
|
{{/* 2026-11-19 (share-loops #3): og:title/og:description were already
|
|
set correctly per sub-page below, but no twitter: tags existed on
|
|
this whole branch (repo/issue/diff pages) -- some unfurlers (X
|
|
itself, several Slack-app configs) require an explicit
|
|
twitter:card and don't always fall back to the bare og:* tags, so
|
|
a shared repo/issue/PR/diff link could render with no card at
|
|
all. Captured into $ogTitle/$ogDescription so the twitter: tags
|
|
below stay byte-identical to whatever og: tags this sub-page
|
|
already emits, instead of duplicating the branching.
|
|
plans/growth-loops-2026-11-19.md Rithub row #3. */}}
|
|
{{$ogTitle := ""}}
|
|
{{$ogDescription := ""}}
|
|
{{if .Issue}}
|
|
{{$ogTitle = .Issue.Title}}
|
|
<meta property="og:title" content="{{.Issue.Title}}">
|
|
<meta property="og:url" content="{{.Issue.HTMLURL}}">
|
|
{{if .Issue.Content}}
|
|
{{$ogDescription = (StringUtils.EllipsisString .Issue.Content 300)}}
|
|
<meta property="og:description" content="{{$ogDescription}}">
|
|
{{end}}
|
|
{{else if or .PageIsDiff .IsViewFile}}
|
|
{{$ogTitle = .Title}}
|
|
<meta property="og:title" content="{{.Title}}">
|
|
<meta property="og:url" content="{{AppUrl}}{{.Link}}">
|
|
{{if and .PageIsDiff .Commit}}
|
|
{{- $commitMessageParts := StringUtils.Cut .Commit.Message "\n" -}}
|
|
{{- $commitMessageBody := index $commitMessageParts 1 -}}
|
|
{{- if $commitMessageBody -}}
|
|
{{$ogDescription = (StringUtils.EllipsisString $commitMessageBody 300)}}
|
|
<meta property="og:description" content="{{$ogDescription}}">
|
|
{{- end -}}
|
|
{{end}}
|
|
{{else}}
|
|
{{$ogTitle = .Repository.Name}}
|
|
<meta property="og:title" content="{{.Repository.Name}}">
|
|
<meta property="og:url" content="{{.Repository.HTMLURL}}">
|
|
{{if .Repository.Description}}
|
|
{{$ogDescription = (StringUtils.EllipsisString .Repository.Description 300)}}
|
|
<meta property="og:description" content="{{$ogDescription}}">
|
|
{{end}}
|
|
{{end}}
|
|
<meta property="og:type" content="object">
|
|
{{$ogImage := (.Repository.AvatarLink ctx)}}
|
|
{{if not $ogImage}}
|
|
{{$ogImage = (.Repository.Owner.AvatarLink ctx)}}
|
|
{{end}}
|
|
<meta property="og:image" content="{{$ogImage}}">
|
|
<meta name="twitter:card" content="summary">
|
|
<meta name="twitter:title" content="{{if $ogTitle}}{{$ogTitle}}{{else}}{{.Repository.Name}}{{end}}">
|
|
{{if $ogDescription}}<meta name="twitter:description" content="{{$ogDescription}}">{{end}}
|
|
<meta name="twitter:image" content="{{$ogImage}}">
|
|
{{else}}
|
|
<meta property="og:title" content="{{AppName}}">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:image" content="https://assets.scribase.com/cards/rithub-og-1200x630-1118m.png">
|
|
<meta property="og:image:width" content="1200">
|
|
<meta property="og:image:height" content="630">
|
|
<meta property="og:image:alt" content="Rithub — leave GitHub. Keep every repo.">
|
|
<meta property="og:url" content="{{AppUrl}}">
|
|
<meta property="og:description" content="{{MetaDescription}}">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:title" content="{{AppName}}">
|
|
<meta name="twitter:description" content="{{MetaDescription}}">
|
|
<meta name="twitter:image" content="https://assets.scribase.com/cards/rithub-og-1200x630-1118m.png">
|
|
{{end}}
|
|
<meta property="og:site_name" content="{{AppName}}">
|