Title is not in the html file when using `nuxi generate`
DaniGTA opened this issue · comments
Dani 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.
Harlan Wilton commented
Hey @DaniGTA
Are you generating as a SPA? If so this is a known issue and may be fixed soon
Harlan Wilton commented
Should be fixed in the edge channel nuxt/framework#8975