Skip to content
A hugo shortcode for collapsible code blocks.
Branch: master
Clone or download
Latest commit bdd37fb Oct 31, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
layouts/shortcode initial commit Oct 5, 2018
static initial commit Oct 5, 2018
LICENSE Initial commit Oct 5, 2018
README.md Update README.md Oct 31, 2018

README.md

Hugo collapsible code block

A Hugo shortcode for collapsible code blocks in your web pages.

The solution wraps the out of the box highlight feature of hugo in additional divs with attached javascript logic. This solution does not require jquery.

Example usage

This example creates a collapsible code block for CSS code.

{{< code css >}}

... lots of css code ...

{{< /code >}}
You can’t perform that action at this time.