DEV Community

loading...

Discussion on: SEO in Nuxt.js with the Head Property

Collapse
danbaechtold profile image
Daniel Bächtold

Hi Debbie,
Thanks for this article. I tried head() and then thought ih would be very helpful to be able to use the current title (or something else) in the app's title bar (in the main layout).
Is that possible or totally the wrong way?
Thanks!
Dan

Collapse
debs_obrien profile image
Debbie O'Brien Author

Hey Dan, not sure I fully understand what you want to do. Feel free to send me an example or a screenshot.

Collapse
danbaechtold profile image
Daniel Bächtold

OK thanks!
I have a PWA which always shows a title bar. This is some of the code in layout.php:

<v-app-bar>
  <v-toolbar-title>{{ title }}</v-toolbar-title>
  ...
</v-app-bar>

I'd like the {{ title }} to be whatever has been set with head().

Thread Thread
mannil profile image
Alexander Lichter

Hey Dan 👋🏻

AFAIK you can't retrieve the document's title from vue-meta directly :/