hugolib: Camelcase ALL_CAPS vars and const in tests

See #2014
This commit is contained in:
bogem
2016-11-21 23:02:19 +01:00
committed by Bjørn Erik Pedersen
parent 75e55cd06f
commit 32336e9ec6
2 changed files with 6 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ import (
"github.com/spf13/viper"
)
const SITEMAP_TEMPLATE = `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
const sitemapTemplate = `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ range .Data.Pages }}
<url>
<loc>{{ .Permalink }}</loc>
@@ -56,7 +56,7 @@ func doTestSitemapOutput(t *testing.T, internal bool) {
}
} else {
if err := buildAndRenderSite(s, "sitemap.xml", SITEMAP_TEMPLATE); err != nil {
if err := buildAndRenderSite(s, "sitemap.xml", sitemapTemplate); err != nil {
t.Fatalf("Failed to build site: %s", err)
}
}