vueuse / head

Document head management for Vue. Powered by Unhead. - 🌇 Sunset

Home Page:https://unhead.unjs.io/setup/vue/installation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Title is not in the html file when using `nuxi generate`

DaniGTA opened this issue · comments

commented

When i set the head via

    <Head>
      <Title>Test</Title>
    </Head>

or

<script setup lang="ts">
const { t } = useI18n();
useHead({
  title: "test",
});
</script>

the generated html file via nuxi generate has no title.
When the user opens the html file it shows the correct title. but isnt this bad for bots? When they dont render js they cant grab the title.

Hey @DaniGTA

Are you generating as a SPA? If so this is a known issue and may be fixed soon

Should be fixed in the edge channel nuxt/framework#8975