diff --git a/config.toml b/config.toml index f3c53cb..772377d 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseurl = "https://build.cfengine.com/" +baseurl = "/" languageCode = "en" title = "CFEngine Build" theme = "cfbs-theme" @@ -17,3 +17,6 @@ modules = ['packages-allowlist-snapshot', 'delete-files', 'promise-type-docker-c [taxonomies] tag = "tags" author = "author" + +[params.sitemap] +baseUrl = "https://build.cfengine.com" diff --git a/layouts/sitemap.xml b/layouts/sitemap.xml new file mode 100644 index 0000000..c8b006d --- /dev/null +++ b/layouts/sitemap.xml @@ -0,0 +1,24 @@ +{{ printf "" | safeHTML }} + + {{ range .Data.Pages }} + {{- if .Permalink -}} + + {{ .Site.Params.Sitemap.BaseUrl }}{{ .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 }} + {{ end }} + {{ end }} + + {{- end -}} + {{ end }} +