From: Mischa POSLAWSKY Date: Tue, 15 Oct 2019 03:56:38 +0000 (+0200) Subject: sitemap.xml: common protocol listing all pages X-Git-Tag: v4.1~24 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/053009b156c6f814fb405c8575bb294aab512627 sitemap.xml: common protocol listing all pages Minimal implementations of sitemap for make benefit glorious engines of search. --- diff --git a/sitemap.xml/index.php b/sitemap.xml/index.php new file mode 100644 index 0000000..7d28815 --- /dev/null +++ b/sitemap.xml/index.php @@ -0,0 +1,23 @@ +'; +$siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST']; +?> + + +files() as $link) { + $article = new ArchiveArticle($link); + print ''; + print "$siteref/{$article->link}"; + if ($article->last) { + print "{$article->lastiso}"; + } + print "\n"; +} +?> + +