mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-18 15:31:55 +00:00
hugolib: Some more Golint fixes
This commit is contained in:
parent
dac34f9bfd
commit
a6de8dfb42
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ import (
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ROBOTSTXT_TEMPLATE = `User-agent: Googlebot
|
const robotTxtTemplate = `User-agent: Googlebot
|
||||||
{{ range .Data.Pages }}
|
{{ range .Data.Pages }}
|
||||||
Disallow: {{.RelPermalink}}
|
Disallow: {{.RelPermalink}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -31,7 +31,7 @@ func TestRobotsTXTOutput(t *testing.T) {
|
||||||
|
|
||||||
s.initializeSiteInfo()
|
s.initializeSiteInfo()
|
||||||
|
|
||||||
s.prepTemplates("robots.txt", ROBOTSTXT_TEMPLATE)
|
s.prepTemplates("robots.txt", robotTxtTemplate)
|
||||||
|
|
||||||
if err := s.CreatePages(); err != nil {
|
if err := s.CreatePages(); err != nil {
|
||||||
t.Fatalf("Unable to create pages: %s", err)
|
t.Fatalf("Unable to create pages: %s", err)
|
||||||
|
|
|
@ -26,7 +26,7 @@ type Scratch struct {
|
||||||
mu sync.RWMutex
|
mu sync.RWMutex
|
||||||
}
|
}
|
||||||
|
|
||||||
// For single values, Add will add (using the + operator) the addend to the existing addend (if found).
|
// Add will, for single values, add (using the + operator) the addend to the existing addend (if found).
|
||||||
// Supports numeric values and strings.
|
// Supports numeric values and strings.
|
||||||
//
|
//
|
||||||
// If the first add for a key is an array or slice, then the next value(s) will be appended.
|
// If the first add for a key is an array or slice, then the next value(s) will be appended.
|
||||||
|
|
Loading…
Reference in a new issue