All files / apps/huella-legal/app/layouts default.vue

100% Statements 9/9
100% Branches 0/0
100% Functions 1/1
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49  7x                                     7x 7x 7x     7x   7x 1x                     7x                  
<template>
    <div class="flex min-h-dvh flex-col">
        <a
            href="#contenido"
            class="sr-only z-50 rounded-xs bg-primary font-sans text-sm font-semibold text-inverted focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:px-4 focus:py-3"
            >{{ $t("app.skipLink") }}</a
        >
 
        <ShellSiteHeader :sections :issn />
 
        <UMain id="contenido" tabindex="-1" class="min-h-0 flex-1 outline-none">
            <slot />
        </UMain>
 
        <LazyShellSiteFooter hydrate-on-visible :columns :social :issn />
    </div>
</template>
 
<script setup lang="ts">
import { JOURNAL } from "../../layers/articles/shared/constants";
const { t, localeProperties } = useI18n();
const { sections, columns, social } = useSiteNav(useCookiePreferences());
const { issn } = JOURNAL;
const {
    public: { site },
} = useRuntimeConfig();
 
useHead({
    htmlAttrs: { lang: () => localeProperties.value.language },
    link: [
        {
            rel: "alternate",
            type: "application/rss+xml",
            title: JOURNAL.name,
            href: new URL("/feed/", site.url).href,
        },
    ],
});
 
useSeoMeta({
    title: t("app.title"),
    description: t("app.description"),
    // A page without its own og:image (everything but an article) falls back to this.
    ogImage: new URL("/og-image.png", site.url).href,
    ogImageWidth: 1200,
    ogImageHeight: 630,
});
</script>