feat(publication): share policy for manifest routes, canonicals, indexing and sitemap

This commit is contained in:
DeCentN2Madness committed 2026-10-07 12:09:06 -07:00
1 parent ea2f1eaa05
commit cd097d0e76
40 files changed
+846 -282

No files matched your search

+4 -1
View File
@@ -3,7 +3,10 @@ import Button from './Button.astro';
import LanguageSwitcher from './LanguageSwitcher.astro';
import MainNav from './MainNav.astro';
import MobileNav from './MobileNav.astro';
import { getPublicationManifest } from '../utils/publication';
const { lang = 'en' } = Astro.props;
const localizedHome = lang === 'en' ? '/' : `/${lang}`;
const homeHref = (await getPublicationManifest()).some((page) => page.eligible && page.route === localizedHome) ? localizedHome : '/';
const utility = lang === 'es'
? { credit: 'Solicitar CareCredit', bill: 'Pagar mi factura' }
: { credit: 'Apply Care Credit', bill: 'Pay My Bill' };
@@ -16,7 +19,7 @@ const utility = lang === 'es'
</div>
</div>
<div class="container header-inner">
<a class="brand" href={lang === 'en' ? '/' : `/${lang}`}>
<a class="brand" href={homeHref}>
<img src="/assets/images/aia-logo.svg" alt="Arizona Institute for Autism" width="150" height="70" />
</a>
<MainNav lang={lang} />