mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-11-01 15:13:53 +00:00
Ensure sitemap doesn't show in sitemap
This commit is contained in:
1 parent
7d2327405d
commit
73e3346e26
1 file changed
+2
@@ -7,6 +7,7 @@ search: exclude
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{% for page in site.pages %}
|
||||
{% if page.url != "/assets/css/style.css" %}
|
||||
{% if page.url != "/sitemap.xml" %}
|
||||
<url>
|
||||
<loc>{{ page.url }}</loc>
|
||||
<lastmod>{{ site.time | date: '%Y-%m-%d' }}</lastmod>
|
||||
@@ -14,6 +15,7 @@ search: exclude
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% for post in site.posts %}
|
||||
|
||||
Reference in new issue
Block a user