1
Fork 0
Utility shortcodes and partials for use in Hugo sites https://discourse.gohugo.io/t/hugo-theme-utils/12376
This repository has been archived on 2026-05-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2018-06-12 21:15:12 +01:00
.circleci Correct indentation on circleci config file 2018-06-12 20:26:57 +01:00
exampleSite Add static dir so CI doesnt blow up 2018-06-12 20:33:03 +01:00
layouts/shortcodes Add comment shortcode 2018-06-12 19:47:42 +01:00
static Add static dir so CI doesnt blow up 2018-06-12 20:33:03 +01:00
.gitignore Add example site config 2018-06-12 20:03:49 +01:00
LICENSE Create LICENSE 2018-06-12 08:52:51 +01:00
netlify.toml Add netlify config 2018-06-12 20:20:20 +01:00
README.md Add CI badge 2018-06-12 21:15:12 +01:00
theme.toml Add license link 2018-06-12 08:53:39 +01:00

Hugo theme utils

CircleCI

Warning: This repo is currently a work in progress!

Requires Hugo >=0.42.

Utility shortcodes and partials for use in Hugo sites. Thanks to Theme Composition, themes can be merged. This repo houses many utility shortcodes and partials to reduce the amount of reuse and duplication in hugo sites.

This project is also partially in response to a thread on the forums about Hugo having too many internal shortcodes. Moving them out to here allows them to be released and updated separately to Hugo itself, and doesn't bloat the application any more.

Installation:

  1. Add this repo as a git submodule inside the themes/ directory of your site (Or just copy it in, but submodule is far easier to update), as a directory called utils, resulting in themes/utils/.
  2. Add utils to your theme configuration as the last entry in the list.

You may now use any shortcode or partial from here in your site, as if it were included in your sites shortcodes and partials.

Note: Make sure utils is added as the last entry to ensure your theme overrides any shortcodes used in the utils, to avoid any name clashes.