From 3c147bd41922c4f0ac81bc1e1f2ffab8093d5d1c Mon Sep 17 00:00:00 2001 From: Derek Perkins Date: Mon, 24 Nov 2014 19:59:26 -0700 Subject: [PATCH] Added image support to the sitemap.xml template Conflicts: tpl/template_embedded.go --- tpl/template_embedded.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go index 420ca20cb..1b620499f 100644 --- a/tpl/template_embedded.go +++ b/tpl/template_embedded.go @@ -77,6 +77,13 @@ func (t *GoHTMLTemplate) EmbedTemplates() { {{ safeHtml ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} {{ .Sitemap.Priority }}{{ end }} + {{ range .Params.images }} + + .src + {{ with .title }}{{ end }} + {{ with .caption }}{{ end }} + + {{ end }} {{ end }} `)