--- import type { CollectionEntry } from "astro:content"; import { Icon } from "astro-icon"; import { createDateFormatter } from "@root/utils"; import ArticleCover from "@components/ArticleCover.astro"; import ArticleComments from "@components/ArticleComments.astro"; import TranslatedLink from "@components/TranslatedLink.astro"; import { useTranslation, getLanguageFromURL } from "@i18n/utils"; export type Props = { article: CollectionEntry<"blog">; lang: string; }; const { article } = Astro.props as Props; const pageLang = getLanguageFromURL(Astro.url.pathname); const canonicalUrl = new URL(Astro.url.pathname, Astro.site); const { data: { coverImage, title, author, description, tags, pubDate }, slug, } = article; const t = useTranslation(Astro); ---
{ tags && (
    {tags.map((tag) => (
  • ))}
) }
--- {t("article.views")}

{title}

{coverImage && }

{description}