Skip to content

Multiple mounts of the same directory #13818

@ptvoinfo

Description

@ptvoinfo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions