Hugo

Can you have a shortcode inside another shortcode?

I seem to have an issue where I can not embed a custom shortcode inside another shortcode.

for example:
I created a custom shortcode called dropzone.
I then call this shortcode in another shortcode called files
I then call the files shortcode in a content page

So the content page my_list.html looks like this

{{<files>}}

and layouts/shortcode/files.html looks like this

    {{<dropzone>}}

Don’t worry

Realised a shortcode is a layout object.
Need to use partials

1 Like

Yes, but you can nest shortcodes in your content file, which can be a powerful thing.