diff options
author | Bjørn Erik Pedersen <[email protected]> | 2016-03-23 17:17:54 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2016-03-23 17:17:54 +0100 |
commit | a6de8dfb42176484eba258a3dc87c7f1684a7b7f (patch) | |
tree | 87daa5312d31688e1f49ff239cba844f393a88fc /hugolib/robotstxt_test.go | |
parent | dac34f9bfd3e4465145ba7e1ee9fd76aad0f1c5a (diff) | |
download | hugo-a6de8dfb42176484eba258a3dc87c7f1684a7b7f.tar.gz hugo-a6de8dfb42176484eba258a3dc87c7f1684a7b7f.zip |
hugolib: Some more Golint fixes
Diffstat (limited to 'hugolib/robotstxt_test.go')
-rw-r--r-- | hugolib/robotstxt_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/robotstxt_test.go b/hugolib/robotstxt_test.go index dfbaefea1..31f89b847 100644 --- a/hugolib/robotstxt_test.go +++ b/hugolib/robotstxt_test.go @@ -11,7 +11,7 @@ import ( "github.com/spf13/viper" ) -const ROBOTSTXT_TEMPLATE = `User-agent: Googlebot +const robotTxtTemplate = `User-agent: Googlebot {{ range .Data.Pages }} Disallow: {{.RelPermalink}} {{ end }} @@ -31,7 +31,7 @@ func TestRobotsTXTOutput(t *testing.T) { s.initializeSiteInfo() - s.prepTemplates("robots.txt", ROBOTSTXT_TEMPLATE) + s.prepTemplates("robots.txt", robotTxtTemplate) if err := s.CreatePages(); err != nil { t.Fatalf("Unable to create pages: %s", err) |