About the code
I using
const SEOTitle = ref("Light Novel France");
const SEODesc = ref("Le 1er site Français dédié au Light Novel ! Actus, infos, dossiers, critiques et + encore ! Qu'est ce qu'un Light Novel ? On vous dit tout sur l'univers du LN.");
const SEOUrl = ref("https://www.lightnovelfrance.com");
const SEOFollow = ref("index, follow");
useSeoMeta({
description: SEODesc,
canonical: SEOUrl,
ogTitle: SEOTitle,
ogDescription: SEODesc,
ogImage: `https://www.lightnovelfrance.com/favicon.png`,
ogCanonical: SEOUrl,
ogUrl: SEOUrl,
twitterCard: "summary",
twitterTitle: SEOTitle,
twitterDescription: SEODesc,
twitterImage: `https://www.lightnovelfrance.com/favicon.png`,
twitterCanonical: SEOUrl,
});
useHead({
title: SEOTitle,
description: SEODesc,
meta: [
{name: "robots", content: SEOFollow},
{name: "googlebot", content: SEOFollow},
],
});
And if the post was founded on the API, I return that
SEODesc.value = truncate(descPostTransformed, 160 - 3);
// And some others stuff with the truncate ofc
SEOUrl.value = `https://www.lightnovelfrance.com/articles/${article.urlSlug}`;
SEOTitle.value = `${article.title} - Light Novel France`;
SEOFollow.value = "index, follow";