HUGO

How-to use shortcodes in partials?

According with the documentation shortcodes can’t be used in partials.

I would like to re-use a shortcode in a partial, what do you suggest for limiting the refactoring?

Create the partial first. Use this within templates.

Then create shortcode that wraps the partial. Use this within markdown.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.