mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 03:17:07 +00:00
37 lines
1.1 KiB
XML
37 lines
1.1 KiB
XML
---
|
|
layout: none
|
|
search: exclude
|
|
---
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
{% for page in site.pages %}
|
|
{% assign number = page.url | remove: ".html" | remove: "/" %}
|
|
{% assign characters = number | split: "" %}
|
|
{% assign is_number = true %}
|
|
{% for char in characters %}
|
|
{% if char != "0" and char != "1" and char != "2" and char != "3" and char != "4" and char != "5" and char != "6" and char != "7" and char != "8" and char != "9" %}
|
|
{% assign is_number = false %}
|
|
{% break %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% if is_number and number != "404" %}
|
|
<url>
|
|
<loc>/{{ number }}</loc>
|
|
<lastmod>{{ site.time | date: '%Y-%m-%d' }}</lastmod>
|
|
<changefreq>always</changefreq>
|
|
<priority>0.5</priority>
|
|
</url>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% for post in site.posts %}
|
|
<url>
|
|
<loc>{{ post.url }}</loc>
|
|
<lastmod>{{ site.time | date: '%Y-%m-%d' }}</lastmod>
|
|
<changefreq>always</changefreq>
|
|
<priority>0.5</priority>
|
|
</url>
|
|
{% endfor %}
|
|
</urlset>
|