aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page__new.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-06-01 10:19:05 +0200
committerBjørn Erik Pedersen <[email protected]>2022-06-01 12:04:55 +0200
commit212d9e3017c32b91ffc73a6a08e73f34beb1e224 (patch)
tree6e6e99adb457ca815cd98fc508ae1ae119147536 /hugolib/page__new.go
parent4daac654d90bdc6adf92bf8b15a4aa45d7d62efd (diff)
downloadhugo-212d9e3017c32b91ffc73a6a08e73f34beb1e224.tar.gz
hugo-212d9e3017c32b91ffc73a6a08e73f34beb1e224.zip
Fix panic with markdownify/RenderString with shortcode on Page with no content file
Fixes #9959
Diffstat (limited to 'hugolib/page__new.go')
-rw-r--r--hugolib/page__new.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/page__new.go b/hugolib/page__new.go
index 897c0281b..e52b9476b 100644
--- a/hugolib/page__new.go
+++ b/hugolib/page__new.go
@@ -66,6 +66,8 @@ func newPageBase(metaProvider *pageMeta) (*pageState, error) {
},
}
+ ps.shortcodeState = newShortcodeHandler(ps, ps.s)
+
siteAdapter := pageSiteAdapter{s: s, p: ps}
ps.pageMenus = &pageMenus{p: ps}