Skip to content

Shortcodes

Bino Kochumol Varghese edited this page Aug 3, 2023 · 2 revisions

Here is the list of Shortcodes available in the theme:

Details

This simply adds the html5 detail attribute, supported on all modern browsers. Use it like this:

{{< details "This is the details title (click to expand)" >}}
This is the content (hidden until clicked).
{{< /details >}}

Split

This adds a two column side-by-side environment (will turn into 1 col for narrow devices):

{{< columns >}}
This is column 1.
{{< column >}}
This is column 2.
{{< endcolumns >}}

Image with caption

This add an image with caption.

{{< figure src="/path/to/image.jpg" caption="Caption for Image" attrlink="" >}}
Clone this wiki locally