diff --git a/config.yml b/config.yml index 19588c45a4..dcbf7684ce 100644 --- a/config.yml +++ b/config.yml @@ -18,7 +18,7 @@ buildFuture: true enableRobotsTXT: true metaDataFormat: "yaml" -disableKinds: ["404", "taxonomy", "taxonomyTerm", "RSS"] +disableKinds: ["404", "taxonomy", "term", "RSS"] publishDir: "_site" diff --git a/site/layouts/sitemap.xml b/site/layouts/sitemap.xml index 972ebf6a54..869f1cbe86 100644 --- a/site/layouts/sitemap.xml +++ b/site/layouts/sitemap.xml @@ -1,10 +1,12 @@ -{{ printf "" | safeHTML }} +{{ printf "" | safeHTML }} - {{- range .Data.Pages -}}{{ if ne .Params.sitemap_exclude true }} + {{- range .Data.Pages -}}{{ if and .Permalink (ne .Params.sitemap_exclude true) }} {{ .Permalink }}{{ if not .Lastmod.IsZero }} {{ safeHTML (.Lastmod.Format "2006-01-02T15:04:05-07:00") }}{{ end }}{{ with .Sitemap.ChangeFreq }} {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} - {{ .Sitemap.Priority }}{{ end }} + {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} + {{ end }} + {{ end }} {{ end }}{{ end }}