aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page__new.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-05-02 10:41:58 +0200
committerBjørn Erik Pedersen <[email protected]>2024-05-02 10:49:02 +0200
commitc892e75fbce3a0ed04cd4edcda7a480a4e36836c (patch)
treeedf7862034e6072cf9ce70901c83fcde75371852 /hugolib/page__new.go
parent4255d13d3e2e64f6ca9d29b640081992eb31161e (diff)
downloadhugo-c892e75fbce3a0ed04cd4edcda7a480a4e36836c.tar.gz
hugo-c892e75fbce3a0ed04cd4edcda7a480a4e36836c.zip
resources/page: Pull internal Page methods into its own interface
So it doesn't get visible when passing it to `jsonify`.
Diffstat (limited to 'hugolib/page__new.go')
-rw-r--r--hugolib/page__new.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/page__new.go b/hugolib/page__new.go
index e14de6925..ac3962883 100644
--- a/hugolib/page__new.go
+++ b/hugolib/page__new.go
@@ -184,6 +184,7 @@ func (h *HugoSites) newPage(m *pageMeta) (*pageState, *paths.Path, error) {
ResourceNameTitleProvider: m,
ResourceParamsProvider: m,
PageMetaProvider: m,
+ PageMetaInternalProvider: m,
RelatedKeywordsProvider: m,
OutputFormatsProvider: page.NopPage,
ResourceTypeProvider: pageTypesProvider,