mirror of
https://github.com/gohugoio/hugo.git
synced 2024-04-27 14:21:38 +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 }}
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
{{ range .Data.Pages }}
|
||||
{{ range where .Data.Pages "Params.sitemap.exclude" "ne" true }}
|
||||
{{- if .Permalink -}}
|
||||
<url>
|
||||
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
||||
|
|
Loading…
Reference in a new issue