Is there a way to mount multiple directories (e.g.
assets) to Hugo
assets component for use as resources?
The following didn’t work. Not terribly surprised as it likely causes problems for all of the other mounts:
If you want to mount both of these to
You need to mount both:
- source: assets
- source: foo
When you add a mount, the default mount for the concerned target root is ignored: be sure to explicitly add it.
That worked beautifully. Thank you!
That note was confusing to me since it wasn’t immediately obvious to me from the docs that multiple directories could be mounted to the same component. I’ve opened a PR adding your example to the note in case it’s a problem that others may have as well: add example to note in module mounts by AlanBreck · Pull Request #2075 · gohugoio/hugoDocs · GitHub
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.