Overview

Sitemaps help Google and other search engines find your content. With the jekyll-sitemap plugin, it’s easy to generate a sitemap on your Jekyll site.

Installation

  1. Create a Gemfile if you don’t already have one.
  2. Add jekyll-sitemap to the jekyll_plugins group in your Gemfile:
    source 'https://rubygems.org'
    
    gem 'jekyll', '3.3.1'
    
    group :jekyll_plugins do
      gem 'jekyll-sitemap'
    end
    
  3. Run bundle install

Configuration

Exclude

You can exclude particular pages from the sitemap by setting sitemap to false in the front mater.

sitemap: false

Last modified

You can set the last modified date in the front matter of a post using last_modified_at.

last_modified_at: 2017-02-09

Usage

jekyll-sitemap will automatically generate the sitemap at /sitemap.xml.