-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Open
Description
I would like to share some tutorials between two products:
[[module.mounts]]
source = 'shared/tutorials'
target = 'content/product1/tutorials'
[[module.mounts]]
source = 'shared/tutorials'
target = 'content/product2/tutorials'
In my case, mounted tutorials are almost identical, but the product name and the product link are defined in [[cascade]] and inserted into a page using the "param" shortcode.
But Hugo renders these tutorials only once for product1. So, I get the same tutorials for product2.
On Windows, I can make a trick and insert capital letters in the source path. Then Hugo interprets these tutorials as different files.
[[module.mounts]]
source = 'shared/Tutorials'
target = 'content/product1/tutorials'
[[module.mounts]]
source = 'shared/tUtorials'
target = 'content/product2/tutorials'
Maybe, it is possible to add a key value to a mount, like the "lang" parameter.