Skip to content

Commit

Permalink
Added image support to the sitemap.xml template
Browse files Browse the repository at this point in the history
Conflicts:
	tpl/template_embedded.go
  • Loading branch information
derekperkins authored and spf13 committed Mar 13, 2015
1 parent 0be2aad commit 3c147bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tpl/template_embedded.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ func (t *GoHTMLTemplate) EmbedTemplates() {
<lastmod>{{ safeHtml ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
{{ range .Params.images }}
<image:image>
<image:loc>.src</image:loc>
{{ with .title }}<image:title><![CDATA[.]]></image:title>{{ end }}
{{ with .caption }}<image:caption><![CDATA[.]]></image:caption>{{ end }}
</image:image>
{{ end }}
</url>
{{ end }}
</urlset>`)
Expand Down

0 comments on commit 3c147bd

Please sign in to comment.