mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
Adjust a test helper
This commit is contained in:
1 file changed
+3
-7
@@ -83,7 +83,7 @@ type sitesBuilder struct {
|
||||
// Default toml
|
||||
configFormat string
|
||||
configFileSet bool
|
||||
configSet bool
|
||||
configSet bool
|
||||
|
||||
// Default is empty.
|
||||
// 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) {
|
||||
fmt.Println("---------")
|
||||
for _, p := range pages {
|
||||
var meta interface{}
|
||||
if p.File() != nil && p.File().FileInfo() != nil {
|
||||
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)
|
||||
fmt.Printf("Kind: %s Title: %-10s RelPermalink: %-10s Path: %-10s sections: %s Lang: %s\n",
|
||||
p.Kind(), p.Title(), p.RelPermalink(), p.Path(), p.SectionsPath(), p.Lang())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user