layout | title | date | categories | description | tags | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
post |
Add metadata to my Jekyll Blog |
2022-09-07 07:44:11 +0530 |
programming |
SEO Optimizations for my Jekyll Blog. Adding meta tags. Google Site Verification. Sitemap Generation. |
|
- TOC {:toc}
Now that the blog was setup and out in the world, and there was a momentum built with a few posts, it was time to do some SEO work. SEO had a wide scope and not something I would tackle in it's entirety for just a small blog, but I guess doing atleast the bare minimum would be good.
To achieve my goals, I used a Jekyll Plugin called jekyll-seo-tag
.
What this plugin does is simple: inject meta tags into <head>
with data entered in _config.yml
and/or the page front-matter.
For the plugin to inject meta tags with relevant data, the data needs to be added to _config.yml
and/or page's front matter.
Some of the data to be added are listed below.
Blog description, author, tagline, and social links which are generally global across all my blog posts are added here. Some of the data, like description, can be also be used as a fallback if corresponding data in not present in the page's front matter.
Description, and tags which are relevant on a per-page basis are added here.
While injecting front matter using the automated bash script, description, and tags are also injected with some default data, which is to be overridden while writing the blog post.
Also, adding social links to be included in the meta tags as well. These include links to all my public social profiles like twitter, facebook, github, linkedin, and stack-overflow.
For more details, the official configuration documentation can be found here.
Verification of ownership of my site in Google Search Console is the first step to request indexing of my site from Google.
We need to submit a sitemap.xml
for the page to be indexed. The sitemap is generated Jekyll Sitemap Generator Plugin.
Once the sitemap is generated, we need to submit the sitemap link in Google Search Console.
Once the above steps are done, we need to request indexing from Google. This does not ensure that the page will get indexed, but if it does, it does not specify when that will happen. It's a waiting game now.
With that, the basic setup for SEO is done.
Check out the entire series of posts related to Blog Setup