mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-07 11:16:26 +03:00
Revert "Improve .Content vs shortcodes"
This reverts commit e590cc26eb
.
This commit is contained in:
parent
d6982ac0ac
commit
d6a2024e6b
5 changed files with 26 additions and 77 deletions
|
@ -1865,15 +1865,14 @@ func getGoMaxProcs() int {
|
|||
|
||||
func (s *Site) newNodePage(typ string, sections ...string) *Page {
|
||||
p := &Page{
|
||||
bundleType: bundleBranch,
|
||||
language: s.Language,
|
||||
pageInit: &pageInit{},
|
||||
Kind: typ,
|
||||
Source: Source{File: &source.FileInfo{}},
|
||||
Data: make(map[string]interface{}),
|
||||
Site: &s.Info,
|
||||
sections: sections,
|
||||
s: s}
|
||||
language: s.Language,
|
||||
pageInit: &pageInit{},
|
||||
Kind: typ,
|
||||
Source: Source{File: &source.FileInfo{}},
|
||||
Data: make(map[string]interface{}),
|
||||
Site: &s.Info,
|
||||
sections: sections,
|
||||
s: s}
|
||||
|
||||
p.outputFormats = p.s.outputFormats[p.Kind]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue