From c80308e6b3f3f4f6879ee6b7301575f162ac9209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 11 Nov 2016 09:19:16 +0100 Subject: node to page: Add Pages to Page As an alias to .Data.Pages for home page etc. Also renamte NodeType to PageType and make it a string so it can be used in `where`. Updates #2297 --- hugolib/menu_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hugolib/menu_test.go') diff --git a/hugolib/menu_test.go b/hugolib/menu_test.go index bd186bd9f..0d5d81d29 100644 --- a/hugolib/menu_test.go +++ b/hugolib/menu_test.go @@ -415,11 +415,11 @@ func doTestSectionPagesMenu(canonifyURLs bool, t *testing.T) { fishySectionPages := s.Sections["fish-and-chips"] assert.Equal(t, 1, len(fishySectionPages)) - nodeFirst := s.getPage(NodeSection, "first") + nodeFirst := s.getPage(PageSection, "first") require.NotNil(t, nodeFirst) - nodeSecond := s.getPage(NodeSection, "second-section") + nodeSecond := s.getPage(PageSection, "second-section") require.NotNil(t, nodeSecond) - nodeFishy := s.getPage(NodeSection, "fish-and-chips") + nodeFishy := s.getPage(PageSection, "fish-and-chips") require.Equal(t, "fish-and-chips", nodeFishy.sections[0]) firstSectionMenuEntry := findTestMenuEntryByID(s, "spm", "first") @@ -555,7 +555,7 @@ func TestHomeNodeMenu(t *testing.T) { s := setupMenuTests(t, menuPageSources) - home := s.getPage(NodeHome) + home := s.getPage(PageHome) homeMenuEntry := &MenuEntry{Name: home.Title, URL: home.URL()} -- cgit v1.2.3