diff options
author | Jeremy Epstein <[email protected]> | 2021-02-07 04:30:09 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-06 18:30:09 +0100 |
commit | 4867cd1dea34ee53fb73cede2bcff4792e470104 (patch) | |
tree | 6918d1ac19bdd12e2defa30d45b33772b2ea104e /hugolib/site_test.go | |
parent | 92c6c40419bdc13b8bb422a212d1d79240356651 (diff) | |
download | hugo-4867cd1dea34ee53fb73cede2bcff4792e470104.tar.gz hugo-4867cd1dea34ee53fb73cede2bcff4792e470104.zip |
tpl/embedded: Exclude pages without Permalink from sitemap
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r-- | hugolib/site_test.go | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go index 922563420..8942f38f8 100644 --- a/hugolib/site_test.go +++ b/hugolib/site_test.go @@ -583,11 +583,21 @@ categories = [ "hugo" ] +++ Front Matter with Ordered Pages 4. This is longer content` +var weightedPage5 = `+++ +weight = "5" +title = "Five" + +[_build] +render = "never" ++++ +Front Matter with Ordered Pages 5` + var weightedSources = [][2]string{ {filepath.FromSlash("sect/doc1.md"), weightedPage1}, {filepath.FromSlash("sect/doc2.md"), weightedPage2}, {filepath.FromSlash("sect/doc3.md"), weightedPage3}, {filepath.FromSlash("sect/doc4.md"), weightedPage4}, + {filepath.FromSlash("sect/doc5.md"), weightedPage5}, } func TestOrderedPages(t *testing.T) { @@ -979,8 +989,8 @@ func TestClassCollector(t *testing.T) { b := newTestSitesBuilder(t) b.WithConfigFile("toml", fmt.Sprintf(` - - + + minify = %t [build] @@ -989,7 +999,7 @@ minify = %t `, minify)) b.WithTemplates("index.html", ` - + <div id="el1" class="a b c">Foo</div> Some text. @@ -1047,7 +1057,7 @@ func TestClassCollectorStress(t *testing.T) { b := newTestSitesBuilder(t) b.WithConfigFile("toml", ` - + disableKinds = ["home", "section", "term", "taxonomy" ] [languages] |