A collection of custom shortcodes used in YourOnly.One and other Hugo-powered websites made by YourOnly.One.
We use Codeberg for development, suggestions, issues, and pull requests.
Note: These mirrors should not be used as a Hugo module as it will produce a GoLang module error. The
go.mod
ID is set tocodeberg.org/yelosan/hugo-shortcodes
which should match the URL Hugo/GoLang is fetching it from.
Installation is being re-worked.
If you want to customise the shortcodes in this git, the advisable method is the following:
- Copy
your-hugo-project/themes/hugo-shortcodes/layouts/shortcodes/{shortcode}.html
toyour-hugo-project/layouts/shortcodes/{shortcode}.html
- Edit your own copy of
{shortcode}.html
- Hugo will always use your copy of
{shortcode}.html
.
- Hugo will always use your copy of
-
{{< image >}}
-
{{< music >}}
-
{{% quotebox %}}
-
{{< scribd >}}
-
{{< youtube >}}