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__common.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__common.go')
-rw-r--r-- | hugolib/page__common.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/page__common.go b/hugolib/page__common.go index e55bb7e25..59f0bc776 100644 --- a/hugolib/page__common.go +++ b/hugolib/page__common.go @@ -102,6 +102,9 @@ type pageCommon struct { // The parsed page content. pageContent + // Keeps track of the shortcodes on a page. + shortcodeState *shortcodeHandler + // Set if feature enabled and this is in a Git repo. gitInfo *gitmap.GitInfo codeowners []string |