aboutsummaryrefslogtreecommitdiff
path: root/website/astro.config.mjs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-08-03 21:33:33 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-08-03 21:39:25 +0300
commit22bb476d646ccadec71f584b90c2a135fec92929 (patch)
treec6d4b6dffe0b8891c52e7e0cc10c8e6051734c30 /website/astro.config.mjs
parenteacea2daf0b72973173b728936b27478374f2cd2 (diff)
feat(website): rebuild marketing pages on new brand chassis
Diffstat (limited to 'website/astro.config.mjs')
-rw-r--r--website/astro.config.mjs26
1 files changed, 22 insertions, 4 deletions
diff --git a/website/astro.config.mjs b/website/astro.config.mjs
index 61e79cfc..b3050bc7 100644
--- a/website/astro.config.mjs
+++ b/website/astro.config.mjs
@@ -54,6 +54,10 @@ export default defineConfig({
redirects: {
'/ja': '/ja/docs/',
'/zh-cn': '/zh-cn/docs/',
+ /* /stats/ was public and is linked from elsewhere; the numbers it carried
+ now live in the hero strip and the nav count. One key only — Astro
+ normalizes the trailing slash and treats both spellings as one route. */
+ '/stats': '/',
},
integrations: [
sitemap({
@@ -90,6 +94,20 @@ export default defineConfig({
},
customCss: ['./src/styles/starlight.css'],
head: [
+ // the brand display face; Starlight owns its own <head>, so the
+ // marketing pages' font link doesn't reach docs
+ { tag: 'link', attrs: { rel: 'preconnect', href: 'https://fonts.googleapis.com' } },
+ {
+ tag: 'link',
+ attrs: { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: true },
+ },
+ {
+ tag: 'link',
+ attrs: {
+ rel: 'stylesheet',
+ href: 'https://fonts.googleapis.com/css2?family=Archivo:wght@600;800;900&family=Inter:wght@400;500;600&display=swap',
+ },
+ },
{
// First-visit locale redirect: honors browser language order, then
// remembers the last locale the reader actually used.
@@ -122,7 +140,7 @@ export default defineConfig({
},
{
tag: 'meta',
- attrs: { property: 'og:image', content: 'https://herdr.dev/assets/og-card-v8.png' },
+ attrs: { property: 'og:image', content: 'https://herdr.dev/assets/og-card-v9.png' },
},
{ tag: 'meta', attrs: { property: 'og:image:width', content: '1200' } },
{ tag: 'meta', attrs: { property: 'og:image:height', content: '630' } },
@@ -130,18 +148,18 @@ export default defineConfig({
tag: 'meta',
attrs: {
property: 'og:image:alt',
- content: 'Herdr documentation — One terminal. The whole herd.',
+ content: 'Herdr documentation — run them anywhere, leave them running.',
},
},
{
tag: 'meta',
- attrs: { name: 'twitter:image', content: 'https://herdr.dev/assets/og-card-v8.png' },
+ attrs: { name: 'twitter:image', content: 'https://herdr.dev/assets/og-card-v9.png' },
},
{
tag: 'meta',
attrs: {
name: 'twitter:image:alt',
- content: 'Herdr documentation — One terminal. The whole herd.',
+ content: 'Herdr documentation — run them anywhere, leave them running.',
},
},
],