From: Bjørn Erik Pedersen Date: Wed, 3 Mar 2021 19:15:13 +0000 (+0100) Subject: Add a debug helper X-Git-Tag: v0.82.0~21 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6d21559fb;p=brevno-suite%2Fhugo Add a debug helper --- diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go index 59ae84583..09988f972 100644 --- a/hugolib/testhelpers_test.go +++ b/hugolib/testhelpers_test.go @@ -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 {