1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

sitemap.xml: exclude pages with layout: nil.

This commit is contained in:
XhmikosR 2014-01-24 08:40:39 +02:00
parent 6211c56b68
commit 1e24124ddc

View File

@ -11,12 +11,14 @@ layout: nil
<priority>1.0</priority>
</url>
{% for page in site.pages %}
{% if page.layout != "nil" %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
{% endif %}
{% endfor %}
{% for post in site.posts %}
<url>