A collection of hugo shortcodes I created
This repository holds a collection of shortcodes for the Hugo static site generator. Inside each folder is a README.md file with information on how to setup the shortcode.
- Get the theme. This is done by cloning the git repository to your
themes
directory (or adding it as a git sub module)
cd path/to/hugo/themes
# Clone the repo
git clone https://github.com/kevingimbel/hugo-kg-shortcodes.git
# OR add sub module
git submodule add https://github.com/kevingimbel/hugo-kg-shortcodes.git
- Load the theme in your
config.toml
orconfig.yml
theme = ["hugo-kg-shortcodes"]
- Include the hook partial in your footer (for example in
_baseof.html
).
{{ partial "kg-shortcodes-hook.html" . }}
The hook will load additional JavaScript libraries if needed, see shortcode documentations for more details.
A detailed documentation for each shortcode is available here: