mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -1650,12 +1650,13 @@ func (s *Site) kindFromSectionPath(sectionPath string) string {
|
||||
}
|
||||
|
||||
func (s *Site) newTaxonomyPage(title string, sections ...string) *pageState {
|
||||
p, err := newPageFromMeta(&pageMeta{
|
||||
title: title,
|
||||
s: s,
|
||||
kind: page.KindTaxonomy,
|
||||
sections: sections,
|
||||
})
|
||||
p, err := newPageFromMeta(
|
||||
map[string]interface{}{"title": title},
|
||||
&pageMeta{
|
||||
s: s,
|
||||
kind: page.KindTaxonomy,
|
||||
sections: sections,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
@@ -1666,11 +1667,13 @@ func (s *Site) newTaxonomyPage(title string, sections ...string) *pageState {
|
||||
}
|
||||
|
||||
func (s *Site) newPage(kind string, sections ...string) *pageState {
|
||||
p, err := newPageFromMeta(&pageMeta{
|
||||
s: s,
|
||||
kind: kind,
|
||||
sections: sections,
|
||||
})
|
||||
p, err := newPageFromMeta(
|
||||
map[string]interface{}{},
|
||||
&pageMeta{
|
||||
s: s,
|
||||
kind: kind,
|
||||
sections: sections,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user