diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-13 14:27:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-22 09:57:03 +0100 |
commit | c8d3124ddeb86093caf1b18dfaa328c3053e5b63 (patch) | |
tree | 70ff5902eb6ceb5e27202c21b9189e18ee3ea8cb /hugolib/node_as_page_test.go | |
parent | 9347084d61a91c73bba1e04790b029163c38bacf (diff) |
node to page: Remove Node
And misc. TODO-fixes
Updates #2297
Diffstat (limited to 'hugolib/node_as_page_test.go')
-rw-r--r-- | hugolib/node_as_page_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/node_as_page_test.go b/hugolib/node_as_page_test.go index 1f4fb0b0e..1c091821f 100644 --- a/hugolib/node_as_page_test.go +++ b/hugolib/node_as_page_test.go @@ -84,6 +84,7 @@ func TestNodesAsPage(t *testing.T) { require.True(t, home.IsHome()) require.True(t, home.IsNode()) require.False(t, home.IsPage()) + require.True(t, home.Path() != "") section2 := nodes[3] require.Equal(t, "Section2", section2.Title) @@ -185,6 +186,7 @@ func TestNodesWithNoContentFile(t *testing.T) { homePage := homePages[0] require.Len(t, homePage.Data["Pages"], 9) require.Len(t, homePage.Pages, 9) // Alias + require.True(t, homePage.Path() == "") assertFileContent(t, filepath.Join("public", "index.html"), false, "Index Title: Hugo Rocks!", @@ -280,8 +282,6 @@ title = "Hugo in English" // The en language has content pages - // TODO(bep) np alias URL check - assertFileContent(t, filepath.Join("public", "nn", "index.html"), true, "Index Title: Hugo på norsk") assertFileContent(t, filepath.Join("public", "en", "index.html"), true, @@ -582,7 +582,7 @@ Lastmod: {{ .Lastmod.Format "2006-01-02" }} Taxonomy Terms Title: {{ .Title }} Taxonomy Terms Content: {{ .Content }} {{ range $key, $value := .Data.Terms }} - k/v: {{ $key }} / {{ printf "%=v" $value }} + k/v: {{ $key }} / {{ printf "%s" $value }} {{ end }} Date: {{ .Date.Format "2006-01-02" }} Lastmod: {{ .Lastmod.Format "2006-01-02" }} |