Skip to content

Commit

Permalink
Change safeHTtml to safeHTML in sitemap template
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Mar 18, 2015
1 parent a8bfaba commit efb5647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugolib/sitemap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const SITEMAP_TEMPLATE = `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap
{{ range .Data.Pages }}
<url>
<loc>{{ .Permalink }}</loc>
<lastmod>{{ safeHtml ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ with .Sitemap.ChangeFreq }}
<lastmod>{{ safeHTML ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
</url>
Expand Down

0 comments on commit efb5647

Please sign in to comment.