Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title is not in the html file when using nuxi generate #155

Closed
DaniGTA opened this issue Nov 9, 2022 · 2 comments
Closed

Title is not in the html file when using nuxi generate #155

DaniGTA opened this issue Nov 9, 2022 · 2 comments

Comments

@DaniGTA
Copy link

DaniGTA commented Nov 9, 2022

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-zw
Copy link
Collaborator

harlan-zw commented Nov 10, 2022

Hey @DaniGTA

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

@harlan-zw
Copy link
Collaborator

harlan-zw commented Nov 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants