mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Some more Golint fixes
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user