A collection of my shortcodes for Hugo the open-source static site generator.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
optfigure
LICENSE
README.md

README.md

hugo-shortcodes

A collection of my Hugo shortcodes.

Additional information on each module might be found in the readme folder in that directory.

optfigure

Create a figure with title and image from the page bundle. The image will be resized if it is larger than 600x* (you might want to match this to your maximum page width). Optfigure will search for NAME.png or NAME.jpg automatically. Only the filename without extension is required.

{{< optfigure src="logo" title="Page Logo" >}}