caelum0x 600712e8ad feat(ritgram): cut Ritgram references over to ritgram.rithub.dev, add /docs/rit
Owner bought rithub.dev 2026-11-17; Rithub/Ritgram/Rit/gitgram-ai are all part
of it now. Replaces every ritgram.ereboslab.com / git.ereboslab.com reference
across Ritgram's pages/docs/sitemap/robots/og-tags with ritgram.rithub.dev /
rithub.dev, and adds NEXT_PUBLIC_SITE_URL fallback accordingly. New honest
/docs/rit page explains Rit (Rust git library, kept in this monorepo) is not
the production forge engine (that's go-gitea/gitea), added to the sitemap.

Old hosts (git.ereboslab.com, ritgram.ereboslab.com) now 301 to the new
domain at the Caddy layer (box-side change, not in this commit) except
/api/*, git smart-HTTP, and the Actions runner API, so existing
clones/pushes/CI/mobile keep working unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-17 15:19:42 +03:00

31 lines
965 B
TypeScript

import type { Metadata } from 'next'
import type { ReactNode } from 'react'
interface LayoutProps {
children: ReactNode
params: Promise<{ owner: string }>
}
export async function generateMetadata({ params }: { params: Promise<{ owner: string }> }): Promise<Metadata> {
const { owner: username } = await params
return {
title: `@${username} on Ritgram`,
description: `View @${username}'s posts, projects, and GitHub profile on Ritgram.`,
openGraph: {
title: `@${username} on Ritgram`,
description: `View @${username}'s posts, projects, and GitHub profile on Ritgram.`,
url: `https://ritgram.rithub.dev/${username}`,
type: 'profile',
},
twitter: {
card: 'summary',
title: `@${username} on Ritgram`,
description: `View @${username}'s posts, projects, and GitHub profile on Ritgram.`,
},
}
}
export default function UserProfileLayout({ children }: LayoutProps) {
return <>{children}</>
}