Requires a Plugin

sitemap_generator.rb by Michael Levin

Steps to Take

  1. Add a new folder to the project named _plugins/ alongside _site/.
  2. Add sitemap_generator.rb to it.
  3. Change MY_URL in sitemap_generator.rb to reflect your domain name.

Run Jekyll to re-generate your site:

~ $ jekyll --server 

In order to make the Sitemap truly useful for different cases, more configuration is possible. Read about that in the plugin’s

For Example:

Change the PAGES_INCLUDE_POSTS list to include any pages that are looping through your posts (e.g. “index.html”, “archive.html”, etc.). This will ensure that right after you make a new post, the last modified date will be updated to reflect the new post.

General Plugin Resources