Sha256: 9af740c8e28d924b2a08a6535f629b78ad7671a660bbc6d292424342cc101931
Contents?: true
Size: 1.88 KB
Versions: 4
Compression:
Stored size: 1.88 KB
Contents
--- permalink: "/sitemap.xml" layout: null --- <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd http://www.google.com/schemas/sitemap-image/1.1 http://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <!-- Home --> <url> <loc>{{ site.url | absolute_url }}</loc> <lastmod>{{ "now" | date_to_xmlschema }}</lastmod> <priority>1.0</priority> </url> <!-- Collections --> {% assign collections = site.collections | where_exp:'collection','collection.output != false' | where_exp:'collection','collection.label != "posts"' %} {% for collection in collections %} {% assign docs = collection.docs | where_exp:'doc','doc.sitemap != false' %} {% for doc in docs %} <url> <loc>{{ doc.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc> {% if doc.last_modified_at or doc.date %} <lastmod>{{ doc.last_modified_at | default: doc.date | date_to_xmlschema }}</lastmod> {% endif %} <priority>0.9</priority> </url> {% endfor %} {% endfor %} <!-- Pages --> {% assign pages = site.html_pages | where_exp:'doc','doc.sitemap != false' | where_exp:'doc','doc.url != "/404.html"' %} {% for page in pages %} {% if page.title %} <url> <loc>{{ page.url | absolute_url }}</loc> <lastmod>{{ "now" | date_to_xmlschema }}</lastmod> <priority>0.8</priority> </url> {% endif %} {% endfor %} <!-- Posts --> {% for post in site.posts %} <url> <loc>{{ post.url | absolute_url }}</loc> <lastmod>{{ "now" | date_to_xmlschema }}</lastmod> <priority>0.7</priority> </url> {% endfor %} </urlset>
Version data entries
4 entries across 4 versions & 1 rubygems