sitemap.xml: improve format and add lastmodified <lastmod> - saait - the most boring static page generator
(HTM) git clone git://git.codemadness.org/saait
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 05ac00286c4a8bf27b155a2369bfcc93043ff2ea
(DIR) parent fd64204ae7af8aea7f61ce2e6563c0f3372faa51
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 27 Jul 2020 20:18:53 +0200
sitemap.xml: improve format and add lastmodified <lastmod>
Diffstat:
M templates/sitemap.xml/header.xml | 2 +-
M templates/sitemap.xml/item.xml | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/templates/sitemap.xml/header.xml b/templates/sitemap.xml/header.xml
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
-<urlset>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
(DIR) diff --git a/templates/sitemap.xml/item.xml b/templates/sitemap.xml/item.xml
@@ -1 +1,4 @@
-<url><loc>${siteurl}/${filename}</loc></url>
+<url>
+ <loc>${siteurl}/${filename}</loc>
+ <lastmod>${updated}</lastmod>
+</url>