Skip to content

Commit

Permalink
Add a debug helper
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Mar 3, 2021
1 parent ba16a14 commit 6d21559
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hugolib/testhelpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,18 @@ func pagesToString(pages ...page.Page) string {
return strings.Join(paths, "|")
}

func dumpPagesLinks(pages ...page.Page) {
var links []string
for _, p := range pages {
links = append(links, p.RelPermalink())
}
sort.Strings(links)

for _, link := range links {
fmt.Println(link)
}
}

func dumpPages(pages ...page.Page) {
fmt.Println("---------")
for _, p := range pages {
Expand Down

0 comments on commit 6d21559

Please sign in to comment.