1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
288 B
Plaintext

---
const years = await Astro.glob("./archivio/*/index.md");
const currentYear = years
.map((module) => module.file.split("/").at(-2))
.toSorted()
.at(-1);
const {
Content,
frontmatter: { title },
} = years.find((m) => m.file.includes(currentYear));
---
<Content />