How To Hugo Shortcode As Hugo Theme

Occassionally, you would want to print the shortcode instructions into your content as example. Fortunately, Hugo has a built-in method to perform such shortcode escaping and Bissetii supports such feature alongside with Hugo.

To escape Hugo shortcode, you need to append the Go’s comment syntax (/* and */) after/before the shortcode caller like this {{<, >}}.


Here is an example, say the shortcode is this:

{{< link "/img/sample.png" "this" "url-only" >}}

You do this:

{{</* link "/img/sample.png" "this" "url-only" */>}}

and the entire shortcode is escaped. You can also append the comment syntax one more time to print-out the inceptional shortcode, like the one above.