From 9d2cb6b634f2fbc9248d5b4b3cc102910e09dde7 Mon Sep 17 00:00:00 2001 From: Seth Date: Tue, 14 Mar 2017 13:07:27 -0400 Subject: [PATCH] URLs point to correct language (Fixes #12) --- layouts/sitemap.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/sitemap.xml b/layouts/sitemap.xml index 17af4f4..6c6b5bd 100644 --- a/layouts/sitemap.xml +++ b/layouts/sitemap.xml @@ -2,7 +2,10 @@ {{ $baseURL := .Site.BaseURL }} {{ range sort .Data.Pages }} - {{ $baseURL }}#{{ .File.TranslationBaseName }} + {{ $baseURL }}{{ .LanguagePrefix }}/#{{ .File.TranslationBaseName }}{{ 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 }} {{ end }}