diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-06-01 10:19:05 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-06-01 12:04:55 +0200 |
commit | 212d9e3017c32b91ffc73a6a08e73f34beb1e224 (patch) | |
tree | 6e6e99adb457ca815cd98fc508ae1ae119147536 /hugolib/page__new.go | |
parent | 4daac654d90bdc6adf92bf8b15a4aa45d7d62efd (diff) | |
download | hugo-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.go | 2 |
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} |