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:
parent
6211c56b68
commit
1e24124ddc
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user