diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-02-20 14:03:56 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-02-20 14:13:04 +0100 |
commit | 7ef5a4c83e4560bced3eee0ccf0e0db176146f44 (patch) | |
tree | 32b6881df03f9de3fe598b902c7a1c5da2701b51 /hugolib/taxonomy_test.go | |
parent | a70bbd0696df3b0a6889650e48a07f8223151da4 (diff) |
hugolib: Fix 2 Paginator.Pages taxonomy regressions
Fixes #6921
Fixes #6918
Diffstat (limited to 'hugolib/taxonomy_test.go')
-rw-r--r-- | hugolib/taxonomy_test.go | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/hugolib/taxonomy_test.go b/hugolib/taxonomy_test.go index 913773da6..0e2f0d83d 100644 --- a/hugolib/taxonomy_test.go +++ b/hugolib/taxonomy_test.go @@ -577,6 +577,9 @@ Cats Pages: {{ range $cats.Pages}}{{.RelPermalink }}|{{ end }}:END P1 Terms: {{ range $p1.GetTerms "categories" }}{{.RelPermalink }}|{{ end }}:END Section Terms: {{ range $section.GetTerms "categories" }}{{.RelPermalink }}|{{ end }}:END Home Terms: {{ range $home.GetTerms "categories" }}{{.RelPermalink }}|{{ end }}:END +Category Paginator {{ range $categories.Paginator.Pages }}{{ .RelPermalink }}|{{ end }}:END +Cats Paginator {{ range $cats.Paginator.Pages }}{{ .RelPermalink }}|{{ end }}:END + `) b.Build(BuildCfg{}) @@ -591,12 +594,14 @@ Home Terms: {{ range $home.GetTerms "categories" }}{{.RelPermalink }}|{{ end }}: b.Assert(funny.Parent(), qt.Equals, cat) b.AssertFileContent("public/index.html", ` - Categories Pages: /categories/birds/|/categories/cats/|/categories/dogs/|/categories/funny/|/categories/gorillas/|:END - Funny Pages: /section/p1/|/section/p2/|:END - Cats Pages: /section/p1/|/section/|:END - P1 Terms: /categories/cats/|/categories/funny/|:END - Section Terms: /categories/birds/|/categories/cats/|/categories/dogs/|:END - Home Terms: /categories/dogs/|/categories/gorillas/|:END +Categories Pages: /categories/birds/|/categories/cats/|/categories/dogs/|/categories/funny/|/categories/gorillas/|:END +Funny Pages: /section/p1/|/section/p2/|:END +Cats Pages: /section/p1/|/section/|:END +P1 Terms: /categories/cats/|/categories/funny/|:END +Section Terms: /categories/birds/|/categories/cats/|/categories/dogs/|:END +Home Terms: /categories/dogs/|/categories/gorillas/|:END +Cats Paginator /section/p1/|/section/|:END +Category Paginator /categories/birds/|/categories/cats/|/categories/dogs/|/categories/funny/|/categories/gorillas/|:END `) b.AssertFileContent("public/categories/funny/index.xml", `<link>http://example.com/section/p1/</link>`) |