aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page__new.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-02-25 21:40:02 +0100
committerBjørn Erik Pedersen <[email protected]>2020-04-07 21:59:20 +0200
commit2f721f8ec69c52202815cd1b543ca4bf535c0901 (patch)
treecae7d1ee9ce867a4bffc70e94513f09e2aebe162 /hugolib/page__new.go
parent8568928aa8e82a6bd7de4555c3703d8835fbd25b (diff)
downloadhugo-2f721f8ec69c52202815cd1b543ca4bf535c0901.tar.gz
hugo-2f721f8ec69c52202815cd1b543ca4bf535c0901.zip
Add basic "post resource publish support"
Fixes #7146
Diffstat (limited to 'hugolib/page__new.go')
-rw-r--r--hugolib/page__new.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/page__new.go b/hugolib/page__new.go
index 938c13d7c..9ec089f27 100644
--- a/hugolib/page__new.go
+++ b/hugolib/page__new.go
@@ -49,7 +49,8 @@ func newPageBase(metaProvider *pageMeta) (*pageState, error) {
PageMetaProvider: metaProvider,
RelatedKeywordsProvider: metaProvider,
OutputFormatsProvider: page.NopPage,
- ResourceTypesProvider: pageTypesProvider,
+ ResourceTypeProvider: pageTypesProvider,
+ MediaTypeProvider: pageTypesProvider,
RefProvider: page.NopPage,
ShortcodeInfoProvider: page.NopPage,
LanguageProvider: s,