Replace sitemap.xml with Jekyll Sitemap gem

This commit is contained in:
Michael Rose 2014-07-31 09:40:48 -04:00
parent 1a3231f506
commit d06dd17110
4 changed files with 4 additions and 21 deletions

1
404.md
View file

@ -6,6 +6,7 @@ image:
feature: texture-feature-01.jpg
credit: Texture Lovers
creditlink: http://texturelovers.com
sitemap: false
---
Sorry, but the page you were trying to view does not exist --- perhaps you can try searching for it below.

View file

@ -11,6 +11,8 @@ url: http://localhost:4000
permalink: /:categories/:title/
markdown: kramdown
highlighter: pygments
gems:
- jekyll-sitemap
kramdown:
auto_ids: true

View file

@ -1,5 +1,6 @@
---
layout: none
sitemap: false
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

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>