From: Derek Perkins Date: Tue, 25 Nov 2014 02:59:26 +0000 (-0700) Subject: Added image support to the sitemap.xml template X-Git-Tag: v0.14~195 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3c147bd4;p=brevno-suite%2Fhugo Added image support to the sitemap.xml template Conflicts: tpl/template_embedded.go --- diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go index 420ca20c..1b620499 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 }} `)