We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to control meta title, description, and other things. but on a component basis since they differ on each route.
For example, a single post can have unique meta description and title (i'm using serverPrefetch).
How would i do this?
Also how would I perform a redirect post "serverPrefetch" in case a record doesn't exist.
The text was updated successfully, but these errors were encountered:
To do with, i'm using vue-meta package
In my index.html:
<head> {{{ meta.inject().title.text() }}} {{{ meta.inject().meta.text() }}} {{{ meta.inject().link.text() }}} {{{ renderResourceHints() }}} {{{ renderStyles() }}} </head>
In my entry-server, I fetch meta/title to be sure it's prefetch, and then I bind the meta variable to the context (in entry-server) :
context.meta = app.$meta();
On client side, I use a mixin to refresh title/meta when the user navigate (and vue-meta change meta/title inside the dom)
Hope this can help you 😃
Sorry, something went wrong.
Thank you so much Zickat!
No branches or pull requests
I'd like to control meta title, description, and other things. but on a component basis since they differ on each route.
For example, a single post can have unique meta description and title (i'm using serverPrefetch).
How would i do this?
Also how would I perform a redirect post "serverPrefetch" in case a record doesn't exist.
The text was updated successfully, but these errors were encountered: