mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 20:53:39 +00:00
Simplify test output to simplify diffing
This commit is contained in:
parent
f10db101a1
commit
339ee37143
1 changed files with 2 additions and 3 deletions
|
@ -917,13 +917,12 @@ func content(c resource.ContentProvider) string {
|
|||
|
||||
func dumpPages(pages ...page.Page) {
|
||||
fmt.Println("---------")
|
||||
for i, p := range pages {
|
||||
for _, p := range pages {
|
||||
var meta interface{}
|
||||
if p.File() != nil && p.File().FileInfo() != nil {
|
||||
meta = p.File().FileInfo().Meta()
|
||||
}
|
||||
fmt.Printf("%d: Kind: %s Title: %-10s RelPermalink: %-10s Path: %-10s sections: %s Lang: %s Meta: %v\n",
|
||||
i+1,
|
||||
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