mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
@@ -92,7 +92,7 @@ func newPageBucket(p *pageState) *pagesMapBucket {
|
||||
func newPageFromMeta(
|
||||
n *contentNode,
|
||||
parentBucket *pagesMapBucket,
|
||||
meta map[string]interface{},
|
||||
meta map[string]any,
|
||||
metaProvider *pageMeta) (*pageState, error) {
|
||||
if metaProvider.f == nil {
|
||||
metaProvider.f = page.NewZeroFile(metaProvider.s.LogDistinct)
|
||||
@@ -119,7 +119,7 @@ func newPageFromMeta(
|
||||
return nil, err
|
||||
}
|
||||
|
||||
ps.init.Add(func() (interface{}, error) {
|
||||
ps.init.Add(func() (any, error) {
|
||||
pp, err := newPagePaths(metaProvider.s, ps, metaProvider)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -189,7 +189,7 @@ type pageDeprecatedWarning struct {
|
||||
func (p *pageDeprecatedWarning) IsDraft() bool { return p.p.m.draft }
|
||||
func (p *pageDeprecatedWarning) Hugo() hugo.Info { return p.p.s.Info.Hugo() }
|
||||
func (p *pageDeprecatedWarning) LanguagePrefix() string { return p.p.s.Info.LanguagePrefix }
|
||||
func (p *pageDeprecatedWarning) GetParam(key string) interface{} {
|
||||
func (p *pageDeprecatedWarning) GetParam(key string) any {
|
||||
return p.p.m.params[strings.ToLower(key)]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user