Shortcodes with no theme

Trying to use shortcodes under /layouts/shortcodes, with no theme (styling inside main source folder) yet hugo fail to find them. If I put them in a theme, however, they work… how can I code shortcodes without rely on themes?

You need to provide a sample repo with your project’s structure for people in this forum to have a look, as shortcodes are available without a theme under /layouts/shortcodes.

A theme is not required for a Hugo project. Everything goes under the top level /layouts/directory.