Requires a Plugin
Steps to Take
- Add a new folder to the project named
- Add sitemap_generator.rb to it.
MY_URLin sitemap_generator.rb to reflect your domain name.
Run Jekyll to re-generate your site:
In order to make the Sitemap truly useful for different cases, more configuration is possible. Read about that in the plugin’s README.md.
PAGES_INCLUDE_POSTSlist 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.