summaryrefslogtreecommitdiff
path: root/src/components/Translations.astro
diff options
context:
space:
mode:
authorJoão Augusto Costa Branco Marado Torres <torres.dev@disroot.org>2025-07-04 15:37:50 -0300
committerJoão Augusto Costa Branco Marado Torres <torres.dev@disroot.org>2025-07-04 15:37:50 -0300
commit011c4266ccbf3ff66d92e223b2fafd291127c102 (patch)
tree8de8ed25817de784a866d8ba010ddfb7a106388c /src/components/Translations.astro
parent2598c9ef0b945f13e94dba8f36c5fbb5cba58feb (diff)
style: deno fmt
Signed-off-by: João Augusto Costa Branco Marado Torres <torres.dev@disroot.org>
Diffstat (limited to 'src/components/Translations.astro')
-rw-r--r--src/components/Translations.astro16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/components/Translations.astro b/src/components/Translations.astro
index b0164bb..6c2bf42 100644
--- a/src/components/Translations.astro
+++ b/src/components/Translations.astro
@@ -20,7 +20,7 @@ const translations = await getEntries(Astro.props.translations ?? []).then(
---
{
- /* TODO: What about <https://schema.org/translationOfWork> and <https://schema.org/translator>? */
+ /* TODO: What about <https://schema.org/translationOfWork> and <https://schema.org/translator>? */
}
{
@@ -31,17 +31,17 @@ const translations = await getEntries(Astro.props.translations ?? []).then(
<ul class="translations">
{
translations.map(async (
- { data, collection, id },
- ) => {
- const active = lang.localeCompare(data.lang) === 0;
- return (
+ { data, collection, id },
+ ) => {
+ const active = lang.localeCompare(data.lang) === 0;
+ return (
<li
itemprop={active ? undefined : "workTranslation"}
itemscope={!active}
itemtype={active ? undefined : "http://schema.org/BlogPosting"}
itemid={active
- ? undefined
- : new URL(`${collection}/read/${id}`, Astro.site).href}
+ ? undefined
+ : new URL(`${collection}/read/${id}`, Astro.site).href}
>
<a
href={`/${collection}/read/${id}`}
@@ -56,7 +56,7 @@ const translations = await getEntries(Astro.props.translations ?? []).then(
>{data.lang}</span>)</a>
</li>
);
- })
+ })
}
</ul>
</nav>