diff options
author | Vas Sudanagunta <vas@commonkarma.org> | 2018-05-29 21:35:27 -0400 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-18 00:07:20 +0200 |
commit | b93417aa1d3d38a9e56bad25937e0e638a113faf (patch) | |
tree | 86d0ab6972b845b81204516c2716c597e851c03c /hugolib/site_output_test.go | |
parent | fd1f4a7860c4b989865b47c727239cf924a52fa4 (diff) |
Unify page lookups
This commit unifies the core internal page index for all page kinds.
This enables the `ref` and `relref` shortcodes to support all pages kinds, and adds a new page-relative `.GetPage` method with simplified signature.
See #4147
See #4727
See #4728
See #4728
See #4726
See #4652
Diffstat (limited to 'hugolib/site_output_test.go')
-rw-r--r-- | hugolib/site_output_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/site_output_test.go b/hugolib/site_output_test.go index 0677dfbfb..8c9aa113a 100644 --- a/hugolib/site_output_test.go +++ b/hugolib/site_output_test.go @@ -150,7 +150,7 @@ Len Pages: {{ .Kind }} {{ len .Site.RegularPages }} Page Number: {{ .Paginator.P s := h.Sites[0] require.Equal(t, "en", s.Language.Lang) - home := s.getPage(KindHome) + home, _ := s.getPage(nil, "/") require.NotNil(t, home) @@ -325,7 +325,7 @@ baseName = "customdelimbase" th.assertFileContent("public/customdelimbase_del", "custom delim") s := h.Sites[0] - home := s.getPage(KindHome) + home, _ := s.getPage(nil, "/") require.NotNil(t, home) outputs := home.OutputFormats() |