Which renders the current Sitetitle into the title of the sitemap.xsl. Therefore the XSL file must be processed otherwise it will not update when I update the title, or when this will be used on other sites.
Is there a option I missed to realise this?
Or is this getting done differently here in Hugo?
I could not find the needed info in the Docs
WARN 2021/05/03 04:17:18 found no layout file for "sitemapxsl" for layout "main" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
Isnt the index.sitemapxsl.xsl the right file with the right name in the right folder here?
How to exactly call that file from my layout βmainβ?
The link describes it as:
The following config, + layouts/index.sitemapxsl.xsl works for me:
[outputs]
home = ["HTML", "sitemapxsl"]
[outputFormats]
[outputFormats.sitemapxsl]
baseName = "sitemap"
mediaType = "application/xslt+xml" ### Note: this bit
[mediaTypes]
[mediaTypes."application/xslt+xml"] ### to correspond to this bit
suffixes = ["xsl"]
I anyway think that a sitemap.xsl probably should be supported by default. like all other standard things aswell, so everyone can just place a sitemap.xsl into the layouts/ folder and are good to go