Change safeHTtml to safeHTML in sitemap template
authorbep <bjorn.erik.pedersen@gmail.com>
Wed, 18 Mar 2015 20:27:29 +0000 (21:27 +0100)
committerbep <bjorn.erik.pedersen@gmail.com>
Wed, 18 Mar 2015 20:27:29 +0000 (21:27 +0100)
hugolib/sitemap_test.go

index c51ad06df3c1b505e1e7a59a7e82c236556bc00d..0342e2261cb05d18c6b302407a49794249a789f2 100644 (file)
@@ -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>