mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
all: Run modernize -fix ./...
This commit is contained in:
parent
b7ae24b9c2
commit
521911a576
141 changed files with 302 additions and 354 deletions
|
@ -372,14 +372,14 @@ func TestMainSections(t *testing.T) {
|
|||
|
||||
b := newTestSitesBuilder(c).WithViper(v)
|
||||
|
||||
for i := 0; i < 20; i++ {
|
||||
for i := range 20 {
|
||||
b.WithContent(fmt.Sprintf("page%d.md", i), `---
|
||||
title: "Page"
|
||||
---
|
||||
`)
|
||||
}
|
||||
|
||||
for i := 0; i < 5; i++ {
|
||||
for i := range 5 {
|
||||
b.WithContent(fmt.Sprintf("blog/page%d.md", i), `---
|
||||
title: "Page"
|
||||
tags: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"]
|
||||
|
@ -387,7 +387,7 @@ tags: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"]
|
|||
`)
|
||||
}
|
||||
|
||||
for i := 0; i < 3; i++ {
|
||||
for i := range 3 {
|
||||
b.WithContent(fmt.Sprintf("docs/page%d.md", i), `---
|
||||
title: "Page"
|
||||
---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue