Add a debug helper

This commit is contained in:
Bjørn Erik Pedersen 2021-03-03 20:15:13 +01:00
parent ba16a14c6e
commit 6d21559fb5
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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 {