mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
sitemap.xml: exclude pages with layout: nil.
This commit is contained in:
parent
6211c56b68
commit
1e24124ddc
@ -11,12 +11,14 @@ layout: nil
|
|||||||
<priority>1.0</priority>
|
<priority>1.0</priority>
|
||||||
</url>
|
</url>
|
||||||
{% for page in site.pages %}
|
{% for page in site.pages %}
|
||||||
|
{% if page.layout != "nil" %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ site.url }}{{ page.url }}</loc>
|
<loc>{{ site.url }}{{ page.url }}</loc>
|
||||||
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
||||||
<changefreq>weekly</changefreq>
|
<changefreq>weekly</changefreq>
|
||||||
<priority>0.7</priority>
|
<priority>0.7</priority>
|
||||||
</url>
|
</url>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<url>
|
<url>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user