Introduction
Introduction Statistics Contact Development Disclaimer Help
sitemap.xml: improve format and add lastmodified <lastmod> - saait - the most b…
git clone git://git.codemadness.org/saait
Log
Files
Refs
README
LICENSE
---
commit 05ac00286c4a8bf27b155a2369bfcc93043ff2ea
parent fd64204ae7af8aea7f61ce2e6563c0f3372faa51
Author: Hiltjo Posthuma <[email protected]>
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(-)
---
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>
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.