projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8bfaba
)
Change safeHTtml to safeHTML in sitemap template
author
bep
<bjorn.erik.pedersen@gmail.com>
Wed, 18 Mar 2015 20:27:29 +0000
(21:27 +0100)
committer
bep
<bjorn.erik.pedersen@gmail.com>
Wed, 18 Mar 2015 20:27:29 +0000
(21:27 +0100)
hugolib/sitemap_test.go
patch
|
blob
|
history
diff --git
a/hugolib/sitemap_test.go
b/hugolib/sitemap_test.go
index c51ad06df3c1b505e1e7a59a7e82c236556bc00d..0342e2261cb05d18c6b302407a49794249a789f2 100644
(file)
--- a/
hugolib/sitemap_test.go
+++ b/
hugolib/sitemap_test.go
@@
-15,7
+15,7
@@
const SITEMAP_TEMPLATE = `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap
{{ range .Data.Pages }}
<url>
<loc>{{ .Permalink }}</loc>
- <lastmod>{{ safeH
tml
( .Date.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ with .Sitemap.ChangeFreq }}
+ <lastmod>{{ safeH
TML
( .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>