Skip to content

Shortcode Scratch variable not rendering on local server after edit to the Parent Page template #8255

@onedrawingperday

Description

@onedrawingperday

This report came up in the forum and I can confirm that a Scratch variable set in a Shortcode does not render when called from the template of its Parent Page.

The Scratch variable is rendered on first load of the local server in fast rendering mode.

However if --disabelFastRender is used then the variable is not rendered.

Also the variable is not rendered when the command hugo is executed.

Repo to reproduce: https://github.com/Oliver-Fish/hugo-scratchpad


Since Shortcodes are rendered first, I would expect a Scratchpad set in a Shortcode to be available from a Parent Page's template.

cc: @Oliver-Fish

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions