--- // import { Image } from "@astrojs/image/components"; // import * as utils from "@utils/string"; import { createDateFormatter } from "@root/utils"; import ArticleComments from "@components/ArticleComments"; import "./ArticlePost.scss"; import TranslatedLink from "../TranslatedLink"; export type Props = { data: ArticleType; lang: string; }; const { data, lang } = Astro.props as Props; const { title, coverImage, tags, author, published_at } = data; ---
    { tags.map((tag) => (
  • )) }

{title}

{ coverImage && (
{coverImage && {title}} {/* Render remote or local image */} {/* utils.isURL(coverImage) ? ( {data.title} ) : ( {data.title} )*/}
) }