Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Easy-to-use set of snippets for Hugo websites. From Gumroad button to CodePen iframe.
Hugo Shortcodes is a free, MIT-licensed collection of shortcode templates that extend the Hugo static site generator with ready-made components such as a Gumroad button and a CodePen iframe.
Hugo Shortcodes is a GitHub repository by isqua that packages dozens of custom shortcodes for Hugo websites. It takes Hugo's built-in shortcode mechanism and provides a curated set of reusable snippets you can drop into Markdown content files; at build time, each shortcode renders its corresponding HTML, embed, or interface element. The project runs entirely inside the Hugo framework, requires Hugo 0.111 or newer (per the repository badge), and is designed to be installed either as a full theme component or one snippet at a time.
git submodule add -b theme https://github.com/isqua/hugo-shortcodes.git themes/hugo-shortcodes, then append 'hugo-shortcodes' to the theme array in config.toml (for example, theme = ['ananke', 'hugo-shortcodes']).theme array, it layers on top of your main theme (like the popular 'ananke' theme) without replacing it.You choose one of two installation paths from the README. The first adds the repository as a theme via a git submodule and updates the theme list in config.toml; the second uses the “Install only current shortcode” button on the docs site. After installing, you restart the Hugo server and then invoke any enabled shortcode inside a content file; Hugo resolves it to the template and renders the final HTML when the site builds.
Yes. The repository is licensed under the MIT License, meaning there is no cost to use it, and you are free to modify and redistribute it, including in commercial projects.
The repository badge states a minimum Hugo version of 0.111. Using an older Hugo release may cause the shortcodes to fail or render incorrectly.
On the documentation website, open the page for the shortcode you need, scroll down, and click the “Install only current shortcode” button. The page then gives you the exact snippet and instructions to copy into your Hugo project.
Yes. You add it as an additional theme in the theme array in config.toml, keeping your existing theme (like 'ananke') as the first entry. The README recommends restarting the Hugo server after making the change.
