From 831761aeffaa9534e3072d1b894df97a0b495809 Mon Sep 17 00:00:00 2001 From: Tim Jones Date: Wed, 7 Sep 2022 10:32:22 +0200 Subject: [PATCH] fix: docs sitemap www prefix Fixes the missing "www." prefix to the url in the sitemap section of the docs website. Signed-off-by: Tim Jones --- website/layouts/sitemap.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/layouts/sitemap.xml b/website/layouts/sitemap.xml index 458910038..107912bee 100644 --- a/website/layouts/sitemap.xml +++ b/website/layouts/sitemap.xml @@ -2,7 +2,7 @@ {{- range .Data.Pages -}}{{ $currentVersion := index (split .Permalink "/" ) 1 }}{{ $currentVersionDir := $currentVersion | printf "/%s"}}{{ if and .Permalink (ne .Params.sitemap_exclude true) (eq $currentVersionDir site.Params.url_latest_version)}} - https://sidero.dev{{ .Permalink }}{{ if not .Lastmod.IsZero }} + https://www.sidero.dev{{ .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 }}{{ if .IsTranslated }}{{ range .Translations }}