mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-10 03:36:31 +00:00
Merge b6a507a3df
into 74ce5dc841
This commit is contained in:
commit
c3c97d1183
|
@ -1,7 +1,7 @@
|
||||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
{{ range .Data.Pages }}
|
{{ range where .Data.Pages "Params.sitemap.exclude" "ne" true }}
|
||||||
{{- if .Permalink -}}
|
{{- if .Permalink -}}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
||||||
|
|
Loading…
Reference in a new issue