From e6957ac907f396a9091b80b2f3466b8e1350fe46 Mon Sep 17 00:00:00 2001 From: Lodewijk Evers Date: Tue, 13 Mar 2018 11:10:31 +0100 Subject: [PATCH] Add an example xslt stylesheet and instructions to readme --- README.md | 11 +++++ web/sitemap.xsl | 104 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 web/sitemap.xsl diff --git a/README.md b/README.md index ca92e24..3b3ffce 100644 --- a/README.md +++ b/README.md @@ -43,3 +43,14 @@ sitemapXml: Note, if you have a ContentType with the property `searchable: false`, that content type will be ignored. + +## Sitemap stylesheets + +You can customize the sitemap with an xslt stylesheet if you copy the `templates/sitemap_xml.twig` +file and the `web/sitemap.xsl` file to your theme directory and by adding the xsl-stylesheet declaration +after the xml declaration so the first two lines of the `themes/{yourthemename}/sitemap_xml.twig` look like: + +```xml + + +``` diff --git a/web/sitemap.xsl b/web/sitemap.xsl new file mode 100644 index 0000000..7f54af5 --- /dev/null +++ b/web/sitemap.xsl @@ -0,0 +1,104 @@ + + + + + + + XML Sitemap + + + + +
+

XML Sitemap

+

+ Generated by the Bolt sitemap extension, this is an XML Sitemap, meant for consumption by Google. +

+

+ You can find more information about XML News sitemaps here. +

+

+ This sitemap contains URLs. +

+ + + + + + + + + + + + + + + +
TitlePublication Date
+ + + + + + + + +
+
+ + +
+