Hugo Shortcodes - my first try

Hugo Shortcodes - my first try

April 6, 2020  -   1 mins read time -   118 words -  garrardkitchen

hugo, shortcodes, example

My first attempt

Here’s my first effort at creating a shortcode.

This shortcode is available here

Information

Basic

{{< note Sample text >}}

Sample text

With italics

{{< note italic=“true” Sample text >}}

Sample text

With header

{{< note title=“With header”> Sample text >}}

With header
Sample text

Warning

Basic

{{< note warning=“true”> Sample text >}}

Sample text

With italic

{{< note warning=“true” italic=“true” Sample text >}}

Sample text

With header

{{< note warning=“true” title=“With header” Sample text >}}

With header
Sample text

Error

Basic

{{< note error=“true” Sample text >}}

Sample text

With italic

{{< note error=“true” italic=“true” Sample text >}}

Sample text

With header

{{< note error=“true” title=“With header” Sample text >}}

With header
Sample text