From a39b9ac87178329b9873bb4e913b7504282320d8 Mon Sep 17 00:00:00 2001 From: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com> Date: Sat, 1 Jun 2019 15:58:47 +0700 Subject: [PATCH] Adding required XML tag to sample templates Since Hugo 0.55.0 the XML declaration on XML and RSS files is not added automatically anymore. The samples should reflect that. --- content/en/templates/sitemap-template.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/en/templates/sitemap-template.md b/content/en/templates/sitemap-template.md index 7cbc7cefb..27573fdbd 100644 --- a/content/en/templates/sitemap-template.md +++ b/content/en/templates/sitemap-template.md @@ -46,6 +46,7 @@ For multilingual sites, we also create a Sitemap index. You can provide a custom This template respects the version 0.9 of the [Sitemap Protocol](http://www.sitemaps.org/protocol.html). ```xml +{{ printf "" | safeHTML }} {{ range .Data.Pages }} @@ -81,6 +82,7 @@ on render. Please don't include this in the template as it's not valid HTML. This is used to create a Sitemap index in multilingual mode: ```xml +{{ printf "" | safeHTML }} {{ range . }}