Plugin request: Add some general SEO optimizations
See original GitHub issueSummary
Some meta tags are pretty typical nowadays for SEO optimization and could easily be auto-generated.
Basic example
export default {
metaInfo: { title: "My super SEO optimized page" }
}
could automatically add meta tags for twitter:title
, og:title
, etc. Same for “description”.
Another example would be the canonical URL:
<link rel="canonical" href="currentURL" />
which would be easy to generate using the current route.
Motivation
SEO optimization is important for many and at least useful for almost everyone else. It is also not hurting anyone to have it.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:11 (4 by maintainers)
Top Results From Across the Web
13 Best WordPress SEO Plugins - Search Engine Journal
Optimizing your WordPress site is a necessity, and plug-ins can make your job easier. Here are 13 of the most useful WordPress SEO...
Read more >The Best WordPress SEO Plugins (and Must-Have SEO Tools ...
SEO needn't be complex. Explore our recommended WordPress SEO plugins and tools to boost your site's usability and search rankings.
Read more >SEO Starter Guide: The Basics | Google Search Central
A knowledge of basic SEO can have a noticeable impact. Explore the Google SEO starter guide for an overview of search engine optimization...
Read more >10 WordPress Plugins to Turn Your Site Into an SEO ...
Even so, with thousands of WordPress SEO plugins to choose from, a few ... of the SEO Optimized Images plugin, you can “dynamically...
Read more >All in One SEO – Best WordPress SEO Plugin - WordPress.org
This gives you a more in-depth SEO optimization analysis and an actionable SEO checklist, so you can easily optimize your website pages for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think the best way is to create a global component, and adapt it as needed.
For exemple, you can create a component
SEO.vue
:And then in
Post.vue
:And place
<SEO/>
anywhere in the template.Some testing tools:
I recently had to set this up on one of my sites and this is what I came up with. It uses a similar approach to @DavidCouronne’s which I thought made sense for my case. Here we go:
gridsome.config.js
~/main.js
~/layouts/Default.vue
~/components/mixins/SiteSEO.js
I also looked into using a custom
App.vue
but that wouldn’t force an update of the tags on page change. May be possible listening to events but I wasn’t sure if that was better or not.It would be great if we could ~access
metadata
from insidemain.js
~ maketitleTemplate
available insidemetadata
to save us from importing~/.temp/config.js
which I’m not sure is the best way to handle this.Other useful links: