Compare commits

..

No commits in common. "992e94d3aabbbfc86d0f8c6737b3293b407e9696" and "0e4d9d828fbdc5b31b51d0cecb2c45c3fe6c9123" have entirely different histories.

View file

@ -17,131 +17,65 @@ export const useAppHead = (pageTitleChunk) => {
return useHead({ return useHead({
htmlAttrs: { htmlAttrs: {
lang: 'fr', lang: 'fr'
}, },
title: pageTitle, title: pageTitle,
meta: [ meta: [
/* Basic metadata */ /* Basic metadata */
{ {charset: 'utf-8'},
charset: 'utf-8', {name: 'viewport', content: 'width=device-width'},
},
{
name: 'viewport',
content: 'width=device-width',
},
/* Name */ /* Name */
{ {id: 'schema_name', itemprop: 'name', content: siteTitle},
id: 'schema_name',
itemprop: 'name',
content: siteTitle,
},
/* Description */ /* Description */
{ {name: 'description', content: metaDescription},
name: 'description', {id: 'schema_description', itemprop: 'description', content: metaDescription},
content: metaDescription,
},
{
id: 'schema_description',
itemprop: 'description',
content: metaDescription,
},
/* Author */ /* Author */
{ {name: 'author', content: siteTitle},
name: 'author',
content: siteTitle,
},
/* Image */ /* Image */
{ {id: 'schema_image', itemprop: 'image', content: metaImageUrl},
id: 'schema_image',
itemprop: 'image',
content: metaImageUrl,
},
/* Open Graph */ /* Open Graph */
{ {property: 'og:title', content: pageTitle},
property: 'og:title', {property: 'og:description', content: metaDescription},
content: pageTitle, {property: 'og:image', content: metaImageUrl},
}, {property: 'og:image:width', content: '1200'},
{ {property: 'og:image:height', content: '675'},
property: 'og:description', {property: 'og:url', content: pageUrl},
content: metaDescription, {property: 'og:type', content: 'website'},
},
{
property: 'og:image',
content: metaImageUrl,
},
{
property: 'og:image:width',
content: '1200',
},
{
property: 'og:image:height',
content: '675',
},
{
property: 'og:url',
content: pageUrl,
},
{
property: 'og:type',
content: 'website',
},
/* Twitter Card */ /* Twitter Card */
{ {name: 'twitter:card', content: 'summary_large_image'},
name: 'twitter:card', {name: 'twitter:title', content: siteTitle},
content: 'summary_large_image', {name: 'twitter:description', content: metaDescription},
}, {name: 'twitter:image', content: metaImageUrl}
{
name: 'twitter:title',
content: siteTitle,
},
{
name: 'twitter:description',
content: metaDescription,
},
{
name: 'twitter:image',
content: metaImageUrl,
},
], ],
link: [ link: [
/* Canonical URL */ /* Canonical URL */
{ {rel: 'canonical', href: pageUrl},
rel: 'canonical',
href: pageUrl,
},
/* Favicon */ /* Favicon */
{ {rel: 'icon', sizes: 'any', href: 'favicon/paul-nicoue-favicon.ico'},
rel: 'icon', {rel: 'icon', type: 'image/svg+xml', href: 'favicon/paul-nicoue-favicon.svg'},
sizes: 'any', {rel: 'apple-touch-icon', href: 'favicon/paul-nicoue-apple-touch-icon.png'},
href: 'favicon/paul-nicoue-favicon.ico', {rel: 'manifest', href: 'favicon/paul-nicoue.webmanifest'}
},
{
rel: 'icon',
type: 'image/svg+xml',
href: 'favicon/paul-nicoue-favicon.svg',
},
{
rel: 'apple-touch-icon',
href: 'favicon/paul-nicoue-apple-touch-icon.png',
},
{
rel: 'manifest',
href: 'favicon/paul-nicoue.webmanifest',
},
], ],
style: [ style: [
/* Schema */ /* Schema */
{ {itemscope: true, itemtype: 'https://schema.org/WebSite', itemref: 'schema_name schema_description schema_image'}
itemscope: true,
itemtype: 'https://schema.org/WebSite',
itemref: 'schema_name schema_description schema_image',
},
], ],
script: [ script: [
/* Umami tracking code */ /* Matomo tracking code */
{ {
children: `defer src="https://umami.paulnicoue.com/script.js" data-website-id="2df69370-61fb-424f-9719-d106f3e178b5"`, children:
}, `var _paq = window._paq = window._paq || [];
], _paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://matomo.paulnicoue.com/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '4']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();`
}
]
}) })
} }