mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Adjust a test helper
This commit is contained in:
parent
5cb52c2315
commit
eb2a500367
1 changed files with 3 additions and 7 deletions
|
@ -83,7 +83,7 @@ type sitesBuilder struct {
|
||||||
// Default toml
|
// Default toml
|
||||||
configFormat string
|
configFormat string
|
||||||
configFileSet bool
|
configFileSet bool
|
||||||
configSet bool
|
configSet bool
|
||||||
|
|
||||||
// Default is empty.
|
// Default is empty.
|
||||||
// TODO(bep) revisit this and consider always setting it to something.
|
// TODO(bep) revisit this and consider always setting it to something.
|
||||||
|
@ -1007,12 +1007,8 @@ func dumpPagesLinks(pages ...page.Page) {
|
||||||
func dumpPages(pages ...page.Page) {
|
func dumpPages(pages ...page.Page) {
|
||||||
fmt.Println("---------")
|
fmt.Println("---------")
|
||||||
for _, p := range pages {
|
for _, p := range pages {
|
||||||
var meta interface{}
|
fmt.Printf("Kind: %s Title: %-10s RelPermalink: %-10s Path: %-10s sections: %s Lang: %s\n",
|
||||||
if p.File() != nil && p.File().FileInfo() != nil {
|
p.Kind(), p.Title(), p.RelPermalink(), p.Path(), p.SectionsPath(), p.Lang())
|
||||||
meta = p.File().FileInfo().Meta()
|
|
||||||
}
|
|
||||||
fmt.Printf("Kind: %s Title: %-10s RelPermalink: %-10s Path: %-10s sections: %s Lang: %s Meta: %v\n",
|
|
||||||
p.Kind(), p.Title(), p.RelPermalink(), p.Path(), p.SectionsPath(), p.Lang(), meta)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue