mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 03:17:07 +00:00
Ensure sitemap doesn't show in sitemap
This commit is contained in:
@@ -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