hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 6d21559fb55cda39c7b92bb61fd8e65a84465fe5
parent ba16a14c6e884e309380610331aff78213f84751
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed,  3 Mar 2021 20:15:13 +0100

Add a debug helper

Diffstat:
Mhugolib/testhelpers_test.go | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git 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 {