saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 05ac00286c4a8bf27b155a2369bfcc93043ff2ea
parent fd64204ae7af8aea7f61ce2e6563c0f3372faa51
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 27 Jul 2020 20:18:53 +0200

sitemap.xml: improve format and add lastmodified <lastmod>

Diffstat:
Mtemplates/sitemap.xml/header.xml | 2+-
Mtemplates/sitemap.xml/item.xml | 5++++-
2 files changed, 5 insertions(+), 2 deletions(-)

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"> 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>