mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Revert "Added image support to the sitemap.xml template"
This reverts commit 3c147bd419
.
Fixes #972
This commit is contained in:
@@ -77,13 +77,6 @@ func (t *GoHTMLTemplate) EmbedTemplates() {
|
|||||||
<lastmod>{{ safeHtml ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
<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 }}
|
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
|
||||||
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
|
<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>
|
</url>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</urlset>`)
|
</urlset>`)
|
||||||
|
Reference in New Issue
Block a user