diff --git a/.env.example b/.env.example index 93d9110..5447ba6 100644 --- a/.env.example +++ b/.env.example @@ -13,7 +13,7 @@ AUTHOR_NAME=Your Full Name TWITTER_HANDLE=yourtwitterhandle EMAIL=your-email@example.com WEBSITE_URL=https://yourwebsite.com -SITE_NAME=Your Name - Your Title +SITE_NAME=Your Site Name SITE_DESCRIPTION=Your professional description here. ABOUT_TEXT=Your about text describing your background and interests. diff --git a/README.md b/README.md index 0355df6..47f857a 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ All content is driven by environment variables — no CMS required. See [`.env.e | `TWITTER_HANDLE` | Twitter/X username (without `@`) for SEO | | `EMAIL` | Contact email in Connect and footer | | `WEBSITE_URL` | Canonical site URL | -| `SITE_NAME` | Site title | +| `SITE_NAME` | Base site name (e.g. brand or domain) | | `SITE_DESCRIPTION` | Meta description | | `ABOUT_TEXT` | About section body text | | `SITE_KEYWORDS` | JSON array of SEO keywords | diff --git a/src/app/layout.tsx b/src/app/layout.tsx index eb1d518..e8ad87d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -27,8 +27,8 @@ export const viewport: Viewport = { export const metadata: Metadata = { title: { - default: SITE_NAME, - template: '%s | ' + SITE_NAME, + default: `${SITE_NAME} - ${AUTHOR_NAME}`, + template: '%s - ' + SITE_NAME, }, description: SITE_DESCRIPTION, metadataBase: new URL(WEBSITE_URL), @@ -42,7 +42,7 @@ export const metadata: Metadata = { telephone: false, }, openGraph: { - title: SITE_NAME, + title: `${SITE_NAME} - ${AUTHOR_NAME}`, description: SITE_DESCRIPTION, url: '/', siteName: SITE_NAME, @@ -52,14 +52,14 @@ export const metadata: Metadata = { url: '/opengraph-image', width: 1200, height: 630, - alt: SITE_NAME, + alt: `${SITE_NAME} - ${AUTHOR_NAME}`, }, ], locale: 'en_US', }, twitter: { card: 'summary_large_image', - title: SITE_NAME, + title: `${SITE_NAME} - ${AUTHOR_NAME}`, description: SITE_DESCRIPTION, site: TWITTER_HANDLE ? `@${TWITTER_HANDLE}` : undefined, creator: TWITTER_HANDLE ? `@${TWITTER_HANDLE}` : undefined,