From 1e24124ddc3b59b7d651bc4431a2f2deda1fda8b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 24 Jan 2014 08:40:39 +0200 Subject: [PATCH] sitemap.xml: exclude pages with layout: nil. --- sitemap.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sitemap.xml b/sitemap.xml index 0000433..1322dcd 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -11,12 +11,14 @@ layout: nil 1.0 {% for page in site.pages %} + {% if page.layout != "nil" %} {{ site.url }}{{ page.url }} {{ site.time | date_to_xmlschema }} weekly 0.7 + {% endif %} {% endfor %} {% for post in site.posts %}