HUGO

Use shortcodes inside included files

Hi to all,

I have one doubt:

I have two files, for example, fileOne.adoc and fileTwo.adoc

And the fileOne.adoc includes the fileTwo.adoc in this way

include::fileTwo.adoc[]

And works well, fileTwo.adoc was included. But in the fileTwo.adoc I used one shortcode, something like this:

{{< shortcode "param" >}}

But the problem is when the I compile the website and the fileOne.adoc it’s rendered, the shortcode included in the fileTwo.adoc is rendered in this way:

{{< shorcode "param" >}}

Instead of:

This is the result of the shortcode: param1

Bye and thanks for your help.