IIRC, you can put shortcodes independently from the theme into the /_default/shortcodes/ folder, and Hugo will pick up these shortcodes. (If you have a shortcode with the same title both in the theme and in the repo, the one in the repo wins.) Or if you have multiple repos where you want to use these shortcodes, you can try to layer a separate theme that contains your shortcodes with the theme composition feature, see Add support for theme composition and inheritance · gohugoio/hugo@80230f2 · GitHub