25 lines
939 B
XML
25 lines
939 B
XML
<!-- {{ include.name }}: {{ include.links | size }} links with priority={{ include.priority }}, changefreq={{ include.changefreq }} -->
|
|
{% for link in include.links %}
|
|
{% unless link.sitemap.exclude or link.published == false %}
|
|
<url>
|
|
<loc>{{ site.url }}{{ site.baseurl }}{{ link.url | remove: 'index.html' }}</loc>
|
|
{% if link.sitemap.lastmod %}
|
|
<lastmod>{{ link.sitemap.lastmod | date: '%Y-%m-%d' }}</lastmod>
|
|
{% elsif link.date %}
|
|
<lastmod>{{ link.date | date_to_xmlschema }}</lastmod>
|
|
{% else %}
|
|
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
|
{% endif %}
|
|
{% if link.sitemap.changefreq %}
|
|
<changefreq>{{ link.sitemap.changefreq }}</changefreq>
|
|
{% else %}
|
|
<changefreq>{{ include.changefreq }}</changefreq>
|
|
{% endif %}
|
|
{% if link.sitemap.priority %}
|
|
<priority>{{ link.sitemap.priority }}</priority>
|
|
{% else %}
|
|
<priority>{{ include.priority }}</priority>
|
|
{% endif %}
|
|
</url>
|
|
{% endunless %}
|
|
{% endfor %}
|