From 0340970f4e3954fa307a524a5d8099795ef0f3a3 Mon Sep 17 00:00:00 2001 From: Barry Clark Date: Sat, 17 May 2014 18:22:27 -0400 Subject: Added sitemap.xml --- sitemap.xml | 56 ++++++++++++-------------------------------------------- 1 file changed, 12 insertions(+), 44 deletions(-) (limited to 'sitemap.xml') diff --git a/sitemap.xml b/sitemap.xml index 15d799f..4b3a4d4 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1,52 +1,20 @@ --- -layout: none -sitemap: - priority: 0.7 - changefreq: monthly - lastmod: 2013-11-16T10:17:00-05:00 --- - - {{ site.url }}/ - {{ site.time | date_to_xmlschema }} - weekly - 1.0 - - {% for post in site.posts %} + {% for post in site.posts %} - {{ site.url }}{{ post.url }} - {% if post.lastmod == null %} - {{ post.date | date_to_xmlschema }} - {% else %} - {{ post.lastmod | date_to_xmlschema }} - {% endif %} - monthly - 0.5 + {{ site.url }}{{ post.url | remove: 'index.html' }} + + {% endfor %} + + {% for page in site.pages %} + {% if page.layout != nil %} + {% if page.layout != 'redirect' %} + + {{ site.url }}{{ page.url | remove: 'index.html' }} - {% endfor %} - {% for page in site.pages %} - - {{ site.url }}{{ page.url }} - {% if page.sitemap.lastmod %} - {{ page.sitemap.lastmod | date: "%Y-%m-%d" }} - {% elsif page.lastmod %} - {{ page.lastmod | date: "%Y-%m-%d" }} - {% elsif page.date %} - {{ page.date | date: "%Y-%m-%d" }} - {% else %} - {{ site.time | date: "%Y-%m-%d" }} - {% endif %} - {% if page.sitemap.changefreq %} - {{ page.sitemap.changefreq }} - {% else %} - monthly {% endif %} - {% if page.sitemap.priority %} - {{ page.sitemap.priority }} - {% else %} - 0.3 {% endif %} - - {% endfor %} - + {% endfor %} + \ No newline at end of file -- cgit v1.2.3