mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
@@ -78,8 +78,8 @@ type PageMeta struct {
|
||||
}
|
||||
|
||||
type Position struct {
|
||||
Prev *Page
|
||||
Next *Page
|
||||
Prev *Page
|
||||
Next *Page
|
||||
PrevInSection *Page
|
||||
NextInSection *Page
|
||||
}
|
||||
@@ -204,6 +204,10 @@ func (p *Page) getRenderingConfigFlags() map[string]bool {
|
||||
return flags
|
||||
}
|
||||
|
||||
func (p *Page) isRenderingFlagEnabled(flag string) bool {
|
||||
return p.getRenderingConfigFlags()[flag]
|
||||
}
|
||||
|
||||
func newPage(filename string) *Page {
|
||||
page := Page{contentType: "",
|
||||
Source: Source{File: *source.NewFile(filename)},
|
||||
|
Reference in New Issue
Block a user