Basic

Based on CloudCannon/aperture-jekyll-template robots.txt.

  • robots.txt
      ---
      layout: null
      sitemap: false
      ---
    
      User-agent: *
      Disallow:
    
      Sitemap: {{ 'sitemap.xml' | absolute_url }}
    

Plugin

See jekyll-sitemap plugin.

Install and enable under plugins and you’ll get a sitemap and robots file.

  • robots.txt
      Sitemap: {{ "sitemap.xml" | absolute_url }}