Can I split shortcodes folder into subdirectories?

Hello there,

I think the answer to this is no, but is there a way one can put shortcodes in subdirectories and still use them…for example;

\shortcodes\incompleteshortcodes\myshortcode.html
\shortcodes\myshortcodes.html

Thank you for any thoughts

1 Like

Yes, I fixed that in a fairly recent Hugo version. But you need to use forward slashes, e.g.

{{< boxes/square >}}
5 Likes

Awsome, thank you. That’ll do the job! Always helpful, thank you…