Replace sitemap.xml with official Jekyll Sitemap gem

This commit is contained in:
Michael Rose 2014-08-01 14:37:57 -04:00
parent cec6aa75ed
commit 2ee8c7378d
4 changed files with 7 additions and 32 deletions

1
404.md
View file

@ -2,6 +2,7 @@
layout: page layout: page
title: "Page Not Found" title: "Page Not Found"
description: "Page not found. Your pixels are in another canvas." description: "Page not found. Your pixels are in another canvas."
sitemap: false
--- ---
Sorry, but the page you were trying to view does not exist --- perhaps you can try searching for it below. Sorry, but the page you were trying to view does not exist --- perhaps you can try searching for it below.

View file

@ -1,12 +1,7 @@
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'jekyll' gem 'jekyll'
gem 'kramdown' gem 'jekyll-sitemap'
gem 'coderay'
gem 'rake'
gem 'thor'
gem 'activesupport'
gem 'stringex'
group :test do group :test do
gem 'html-proofer' gem 'html-proofer'

View file

@ -43,13 +43,13 @@ links:
url: http://mademistakes.com url: http://mademistakes.com
external: true external: true
# http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone: America/New_York
future: true future: true
pygments: true highlighter: pygments
#highlighter: pygments
markdown: kramdown markdown: kramdown
gems:
- jekyll-sitemap
# https://github.com/mojombo/jekyll/wiki/Permalinks # https://github.com/mojombo/jekyll/wiki/Permalinks
permalink: /:categories/:title/ permalink: /:categories/:title/

View file

@ -1,21 +0,0 @@
---
layout: nil
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>{{ site.url }}</loc>
</url>
{% for page in site.pages %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
</url>
{% endfor %}
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
</url>
{% endfor %}
</urlset>