Hide duplicated awards from accessibility readers, disallow API routes, fix footer re-run
Build and Deploy to Web Server / deploy (push) Successful in 10m25s
Build and Deploy to Web Server / deploy (push) Successful in 10m25s
This commit is contained in:
3 files changed
+27
-5
No files matched your search
+14
-1
@@ -32,7 +32,20 @@ export default defineConfig({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
integrations: [icon(), mdx(), sitemap(), robotsTxt()],
|
integrations: [
|
||||||
|
icon(),
|
||||||
|
mdx(),
|
||||||
|
sitemap(),
|
||||||
|
robotsTxt({
|
||||||
|
policy: [
|
||||||
|
{
|
||||||
|
userAgent: "*",
|
||||||
|
allow: "/",
|
||||||
|
disallow: "/api/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
|
],
|
||||||
|
|
||||||
markdown: {
|
markdown: {
|
||||||
shikiConfig: {
|
shikiConfig: {
|
||||||
|
|||||||
@@ -62,6 +62,8 @@ import TextLink from "@components/TextLink.astro";
|
|||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script is:inline data-astro-rerun>
|
<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>
|
</script>
|
||||||
@@ -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"
|
class="animate-scrolling-awards m-0 mx-auto flex max-w-md flex-col space-y-8 p-0"
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
awardsDoubled.map((award) => {
|
awardsDoubled.map((award, index) => {
|
||||||
return <AwardCard award={award} />;
|
// 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>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user