mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-18 17:06:56 +00:00
48 lines
949 B
Vue
48 lines
949 B
Vue
<script setup lang="ts">
|
|
import {
|
|
DEFAULT_DESCRIPTION,
|
|
DEFAULT_IMAGE,
|
|
DEFAULT_TITLE,
|
|
SITE_NAME,
|
|
SITE_URL,
|
|
personSchema,
|
|
websiteSchema,
|
|
} from '~/utils/site';
|
|
|
|
const jsonLd = {
|
|
'@context': 'https://schema.org',
|
|
'@graph': [
|
|
websiteSchema(),
|
|
{
|
|
...personSchema(),
|
|
mainEntityOfPage: { '@id': `${SITE_URL}/#homepage` },
|
|
},
|
|
],
|
|
};
|
|
|
|
useSeoMeta({
|
|
ogSiteName: SITE_NAME,
|
|
ogImage: DEFAULT_IMAGE,
|
|
ogImageAlt: SITE_NAME,
|
|
twitterCard: 'summary',
|
|
twitterTitle: DEFAULT_TITLE,
|
|
twitterDescription: DEFAULT_DESCRIPTION,
|
|
twitterImage: DEFAULT_IMAGE,
|
|
});
|
|
|
|
useHead({
|
|
link: [{ rel: 'icon', type: 'image/png', href: '/favicon.png' }],
|
|
script: [
|
|
{
|
|
key: 'json-ld-site',
|
|
type: 'application/ld+json',
|
|
innerHTML: JSON.stringify(jsonLd),
|
|
},
|
|
],
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtPage />
|
|
</template>
|