mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Create pages from _content.gotmpl
Closes #12427 Closes #12485 Closes #6310 Closes #5074
This commit is contained in:
@@ -173,7 +173,7 @@ func TestTreeInsert(t *testing.T) {
|
||||
c.Assert(tree.Get("/notfound"), qt.IsNil)
|
||||
|
||||
ab2 := &testValue{ID: "/a/b", Lang: 0}
|
||||
v, ok := tree.InsertIntoValuesDimension("/a/b", ab2)
|
||||
v, _, ok := tree.InsertIntoValuesDimension("/a/b", ab2)
|
||||
c.Assert(ok, qt.IsTrue)
|
||||
c.Assert(v, qt.DeepEquals, ab2)
|
||||
|
||||
@@ -239,16 +239,16 @@ func (s *testShifter) ForEeachInDimension(n *testValue, d int, f func(n *testVal
|
||||
f(n)
|
||||
}
|
||||
|
||||
func (s *testShifter) Insert(old, new *testValue) *testValue {
|
||||
return new
|
||||
func (s *testShifter) Insert(old, new *testValue) (*testValue, *testValue, bool) {
|
||||
return new, old, true
|
||||
}
|
||||
|
||||
func (s *testShifter) InsertInto(old, new *testValue, dimension doctree.Dimension) *testValue {
|
||||
return new
|
||||
func (s *testShifter) InsertInto(old, new *testValue, dimension doctree.Dimension) (*testValue, *testValue, bool) {
|
||||
return new, old, true
|
||||
}
|
||||
|
||||
func (s *testShifter) Delete(n *testValue, dimension doctree.Dimension) (bool, bool) {
|
||||
return true, true
|
||||
func (s *testShifter) Delete(n *testValue, dimension doctree.Dimension) (*testValue, bool, bool) {
|
||||
return nil, true, true
|
||||
}
|
||||
|
||||
func (s *testShifter) Shift(n *testValue, dimension doctree.Dimension, exact bool) (*testValue, bool, doctree.DimensionFlag) {
|
||||
|
Reference in New Issue
Block a user