Open adamdehaven opened 4 years ago
I am keen to know how you added HTML meta tags for the SEO purpose.
Specially canonical link tags.
I am currently using vuepress-plugin-seo
for adding Open Graph meta tags
There isn't a great way to inject the canonical URL before page load due to the limitations of the SSR template; however, I created a method that injects/updates the canonical URL in the beforeMount
method in my theme's GlobalLayout.vue
file, and then updates it in the mounted()
hook with this.$router.afterEach()
. I have a separate draft post almost ready, and I'll include all the code with examples 🙌
Thanks. Looking forward to this new Post with example code.
@adarshmadrecha
Thanks. Looking forward to this new Post with example code.
The new post illustrating how to add metadata and structured data to your VuePress project is available now! :tada:
Great article, thanks - I started using VuePress a little while back, but felt I wasn't getting the best from it. Now I know that's true!
@adamdehaven I have gone back to your website several times over the past few months and I must say that your website is AMAZING! I love all of your brilliant UX components on here, like the theme changer and the rocket ship! Have you considered open sourcing this theme or any individual components that you use? I would love to learn from you, as I use VuePress for my personal website and am currently building a workplace documentation site with it (VuePress is awesome).
https://www.adamdehaven.com/blog/building-my-new-website-with-vuepress-and-bulma/