aboutsummaryrefslogtreecommitdiff
path: root/_pages/sitemap.xml
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-12 02:58:39 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-12 02:58:39 +0300
commitaabf3632b636e51847b7f5de3264102e96c0b21f (patch)
tree2d61f2437ee135d1fbdab52251b05c56577b40b8 /_pages/sitemap.xml
parent17d8d524c513e838cde550730403127cacd908ca (diff)
downloadpopov.link-aabf3632b636e51847b7f5de3264102e96c0b21f.tar.xz
popov.link-aabf3632b636e51847b7f5de3264102e96c0b21f.zip
Sitemap
Diffstat (limited to '_pages/sitemap.xml')
-rw-r--r--_pages/sitemap.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/_pages/sitemap.xml b/_pages/sitemap.xml
new file mode 100644
index 0000000..a5bbb3f
--- /dev/null
+++ b/_pages/sitemap.xml
@@ -0,0 +1,27 @@
+---
+permalink: "sitemap.xml"
+layout: compress
+---
+
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="{{ page.permalink | absolute_url | xml_escape }}"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
+ <!-- Pages -->
+ {% for item in site.html_pages %}
+ <url>
+ <loc>{{ item.url | absolute_url | xml_escape }}</loc>
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
+ <changefreq>monthly</changefreq>
+ <priority>0.5</priority>
+ </url>
+ {% endfor %}
+ <!-- Posts -->
+ {% for item in site.posts %}
+ <url>
+ <loc>{{ item.url | absolute_url | xml_escape }}</loc>
+ <lastmod>{{ item.date | date_to_xmlschema }}</lastmod>
+ <changefreq>weekly</changefreq>
+ <priority>0.8</priority>
+ </url>
+ {% endfor %}
+</urlset>