Skip to content

Shortcodes: drop support for pre-Hugo-0.54.x behavior of {{% %}} #939

@chalin

Description

@chalin

Here is some context:

While the change introduced by that PR was relevant at the time (during a transition period from Hugo 0.54.x to 0.55+), we now only officially support the latest version of Hugo. So, all shortcodes making use of

{{ $_hugo_config := `{ "version": 1 }` }}

should have that line removed, and the shortcode adjusted, if necessary.

$ find . -type f -not -path "*/node_modules/*" -exec grep -le '_hugo_config' {} \;
./layouts/shortcodes/alert.html
./layouts/shortcodes/blocks/cover.html
./layouts/shortcodes/blocks/section.html
./layouts/shortcodes/blocks/lead.html
./layouts/shortcodes/pageinfo.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions