mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 18:39:14 +03:00
fix tags
This commit is contained in:
parent
581dbf8c89
commit
2662a4afc7
@ -9,7 +9,7 @@ import ArticlesList from "@root/components/ArticlesList";
|
||||
const t = useTranslation(Astro);
|
||||
const pageLang = getLanguageFromURL(Astro.url.pathname);
|
||||
const articles = await getCollection("blog", (e) => !e.data.draft);
|
||||
const tags = utils.getUniqueTags(articles);
|
||||
const tags = Array.from(new Set((await getCollection("tags")).map((t) => t.data.title)));
|
||||
const filtered = utils.removeDuplicates(articles, pageLang);
|
||||
const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
|
||||
---
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user