mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Add a debug helper
This commit is contained in:
@@ -992,6 +992,18 @@ func pagesToString(pages ...page.Page) string {
|
|||||||
return strings.Join(paths, "|")
|
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) {
|
func dumpPages(pages ...page.Page) {
|
||||||
fmt.Println("---------")
|
fmt.Println("---------")
|
||||||
for _, p := range pages {
|
for _, p := range pages {
|
||||||
|
Reference in New Issue
Block a user