diff options
Diffstat (limited to 'src/components/Translations.astro')
-rw-r--r-- | src/components/Translations.astro | 16 |
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> |