--- import { gitDir } from "@lib/git"; import { get } from "@utils/anonymous"; interface Props { lang: string; } const { lang } = Astro.props; let source = new URL( `${Astro.url.href.replace(/\/$/, "")}.md`, ); const dir = await gitDir(); const format: Intl.NumberFormatOptions = { notation: "compact", style: "unit", unit: "byte", unitDisplay: "narrow", }; const formatter = new Intl.NumberFormat(lang, format); const sourceSize = formatter.format( await Deno.stat( new URL("public" + source.pathname, dir), ).then(get("size")), ); const sig = await Deno.stat( new URL("public" + source.pathname + ".sig", dir), ).then(get("size")).catch(() => undefined); const sigSize = formatter.format(sig); ---

Ficheiros para descarregar:

Blog post
text/markdown, {sourceSize}
{ sig && (
Assinatura digital
application/pgp-signature, {sigSize}
) }