diff --git a/content/en/templates/sitemap-template.md b/content/en/templates/sitemap-template.md index 0e721a412..3d49fb290 100644 --- a/content/en/templates/sitemap-template.md +++ b/content/en/templates/sitemap-template.md @@ -45,7 +45,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 {{ range .Pages }} @@ -65,6 +65,23 @@ on render. Please don't include this in the template as it's not valid HTML. `` {{% /note %}} +## Hugo's sitemapindex.xml + +This is used to create a Sitemap index in multilingual mode: + +```xml + + {{ range . }} + + {{ .SitemapAbsURL }} + {{ if not .LastChange.IsZero }} + {{ .LastChange.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + {{ end }} + + {{ end }} + +``` + ## Configure `sitemap.xml` Defaults for ``, `` and `filename` values can be set in the site's config file, e.g.: