I have a weird question. I am preparing all my reusable layout files as modules. Now my shortcodes are residing in a shortcode module. In dev environments (config/development/config.toml
) I am mounting content
to the local content
directory. Inside of the content directory is a shortcodes
directory with a markdown documentation of my shortcodes.
The only problem is, I can’t seem to get this parsed under localhost:1313/shortcodes. Loading that URL with the mount results in the index page being shown (last 5 posts). Removing the mount results in a 404 error, so the mount is definitely mounted somehow.
Adding an index.html
to the layouts/shortcodes
directory does not change anything.
I think it’s not possible to name a section in Hugo “shortcodes”. Am I right? Is that a bug or should it be documented? Thinking this issue further it’s probably impossible to add a “partials” section to a Hugo website too…