I’m working on a post about using different Hugo tokens. I’m trying to figure out how to put {{< >}}
on the page but having it show up like that instead of trying to render. (Same goes for {{% %}}
and any other set of tokens)
I can do <
and >
to get it to render in HTML, but i’m trying to get it to render in code blocks.
Is that possible?
Example:
{{</* relref "page/contact.md" */>}}
1 Like
Thanks, @jmooring - it works like a champ. And, for anyone looking, the same approach works for shortcode tokens.
Using this in the .md file for a page: {{%/* */%}}
Renders this in the HTML: {{% %}}
And, for completeness sake
Using this in the .md file for a page: {{</* */>}}
Renders this in the HTML: {{< >}}
You don’t need to do anything with {{ }}
. It renders just fine. Same goes for {{- -}}
.