Hide duplicated awards from accessibility readers, disallow API routes, fix footer re-run
Build and Deploy to Web Server / deploy (push) Successful in 10m25s

This commit is contained in:
encie22 committed 2026-10-16 13:24:08 +10:30
1 parent e21219aba6
commit 70bf783ca8
3 files changed
+27 -5

No files matched your search

+14 -1
View File
@@ -32,7 +32,20 @@ export default defineConfig({
}
},
integrations: [icon(), mdx(), sitemap(), robotsTxt()],
integrations: [
icon(),
mdx(),
sitemap(),
robotsTxt({
policy: [
{
userAgent: "*",
allow: "/",
disallow: "/api/"
}
]
})
],
markdown: {
shikiConfig: {
+4 -2
View File
@@ -62,6 +62,8 @@ import TextLink from "@components/TextLink.astro";
</footer>
<script is:inline data-astro-rerun>
const year = document.getElementById("footer-year");
if (year) year.innerText = new Date().getFullYear();
{
const year = document.getElementById("footer-year");
if (year) year.innerText = new Date().getFullYear();
}
</script>
+9 -2
View File
@@ -186,8 +186,15 @@ const tracks = (
class="animate-scrolling-awards m-0 mx-auto flex max-w-md flex-col space-y-8 p-0"
>
{
awardsDoubled.map((award) => {
return <AwardCard award={award} />;
awardsDoubled.map((award, index) => {
// Second copy only feeds the scrolling loop: hide it from assistive tech so awards are not announced twice.
return index < awards.length ? (
<AwardCard award={award} />
) : (
<span aria-hidden="true" class="block">
<AwardCard award={award} />
</span>
);
})
}
</div>