layout | title | description | permalink |
---|---|---|---|
default |
Jekyll Sitemap |
Add Jekyll Sitemap Generator |
/blog/jekyll/sitemap/ |
In my previous blog How To: Create A GitHub.io Page I showed you how to great your GitHub.io page. In this blog i am going to show you how to use a Jekyll Sitemap Generator to add a sitemap to your page. I am using Google Analytics and Google Search to monitor traffic and SEO results. Since google wants a sitemap and I do not want to manage it, automating this part of the blog is now needed.
Just add: ```js plugins: - jekyll-sitemap ```
Just add: ```js gem 'jekyll-sitemap' ```
In your root folder execute the command:
bundle
bundle exec jekyll serve
If you want to exclude pages from your sitemap use this syntax in the front matter for your page:
sitemap: false
You should see a new file sitemap.xml in your local /site/ folder. And this url should now work:
http://localhost:4000/sitemap.xml
After commit your changes to your repo be sure to check your github.io page. For example my site map is now:
https://ds-steven-matison.github.io/sitemap.xml
Check out How To: Create a GitHub Page Readme. Be sure to reach out to me to share your blog or if you have any questions, issues, or feedback from creating your GitHub Jekyll Theme Page!!