--- import { Picture } from "@astrojs/image/components"; import { Icon } from "astro-icon"; import { createDateFormatter } from "@root/utils"; import { isURL } from "@utils/string"; import ArticleComments from "@components/ArticleComments"; import TranslatedLink from "../TranslatedLink"; import "./ArticlePost.scss"; import { useTranslation } from "@root/i18n/utils"; export type Props = { data: ArticleType; lang: string; }; const { data, lang } = Astro.props as Props; const { slug, title, description, coverImage, tags, author, published_at } = data; const t = useTranslation(Astro); ---
    { tags.map((tag) => (
  • )) }
--- {t("article.views")}

{title}

{ coverImage && (
) }

{description}