diff options
-rw-r--r-- | src/components/templates/Authors.astro | 2 | ||||
-rw-r--r-- | src/components/templates/signature/Commit.astro | 23 | ||||
-rw-r--r-- | src/components/templates/signature/Downloads.astro | 2 |
3 files changed, 14 insertions, 13 deletions
diff --git a/src/components/templates/Authors.astro b/src/components/templates/Authors.astro index 9482bcd..414b948 100644 --- a/src/components/templates/Authors.astro +++ b/src/components/templates/Authors.astro @@ -269,7 +269,7 @@ if (!expectedFingerprints.isSubsetOf(verifiedFingerprints)) { return <pre>{reason.message}</pre>; }) } - <p><strong>Informações</strong></p> + <h2><strong>Informações</strong></h2> <dl class="divider"> { reasons.map(({ message }) => ( diff --git a/src/components/templates/signature/Commit.astro b/src/components/templates/signature/Commit.astro index 328a8f9..c0cdf5f 100644 --- a/src/components/templates/signature/Commit.astro +++ b/src/components/templates/signature/Commit.astro @@ -1,4 +1,5 @@ --- +import Date from "@components/organisms/Date.astro"; import { gitDir } from "@lib/git"; import type { Commit } from "@lib/git/types"; import { toIso8601Full } from "@utils/datetime"; @@ -7,14 +8,10 @@ type Props = { commit: Commit; lang: string }; const dir = await gitDir(); const { hash, files, author, committer, signature } = Astro.props.commit; - -const formatter = new Intl.DateTimeFormat([Astro.props.lang], { - dateStyle: "short", - timeStyle: "short", -}); --- <section> + <h2 class="sr-only">Commit do git</h2> <details> <summary> Informações sobre o último commit que modificou ficheiros relacionados a @@ -32,9 +29,11 @@ const formatter = new Intl.DateTimeFormat([Astro.props.lang], { : <dd>Nenhum ficheiro modificado</dd> } <dt> - Autor (<time datetime={toIso8601Full(author.date)}>{ - formatter.format(author.date) - }</time>) + Autor (<Date + date={author.date} + locales={Astro.props.lang} + options={{ dateStyle: "short", timeStyle: "short" }} + />) </dt> <dd> {author.name} <<a href={`mailto:${author.email}`}>{ @@ -42,9 +41,11 @@ const formatter = new Intl.DateTimeFormat([Astro.props.lang], { }</a>> </dd> <dt> - Commiter (<time datetime={toIso8601Full(committer.date)}>{ - formatter.format(committer.date) - }</time>) + Commiter (<Date + date={committer.date} + locales={Astro.props.lang} + options={{ dateStyle: "short", timeStyle: "short" }} + />) </dt> <dd> {committer.name} <<a href={`mailto:${committer.email}`}>{ diff --git a/src/components/templates/signature/Downloads.astro b/src/components/templates/signature/Downloads.astro index 3497b37..df58ad3 100644 --- a/src/components/templates/signature/Downloads.astro +++ b/src/components/templates/signature/Downloads.astro @@ -35,7 +35,7 @@ const sigSize = formatter.format(sig); --- <section> - <p>Ficheiros para descarregar:</p> + <h2>Ficheiros para descarregar:</h2> <dl> <dt>Blog post</dt> <dd> |