Am I right with useServerSeoMeta?

Hey guys, I am trying to setup SEO meta tags. I found useServerSeoMeta, but I have a question. When I want to use titleTemplate inside useHead on my app.vue and then on each page I want to setup title and description I have to do it like this:
<script setup>
useHead({
title: 'Home',
});

useServerSeoMeta({
// title: 'Home - My Site',
description: 'My Description',
});
</script>
<script setup>
useHead({
title: 'Home',
});

useServerSeoMeta({
// title: 'Home - My Site',
description: 'My Description',
});
</script>
When I try to use title from my useServerSeoMeta function it doesn't use titleTemplate from my app.vue. Is there any option to do it simpler?
1 Reply
Fabian B.
Fabian B.2y ago
Hey there! You mostly don't need useServerSeoMeta. But maybe you can explain this more detailled as I am a bit confused: Do you want multiple different title templates across your app? Or do you want a single global template, where your title & description from the pages gets loaded in.
Want results from more Discord servers?
Add your server