Hi there,
I was writing a note about Hugo, just trying to explain how templates can be called and I wrote something like this in the Markdown file:
- Partial: `{{ partial "<PATH>/<PARTIAL>.html" . }}`
- Shortcode: `{{% shortcodename parameters %}}`
When I start hugo server or hugo it throw an error:
hugo server
Start building sites …
hugo v0.87.0-B0C541E4+extended windows/amd64 BuildDate=2021-08-03T10:57:28Z VendorInfo=gohugoio
Error: Error building site: "C:\Users\Hippocrene\projects\blog\yuanyiblog\content\posts\hugo.md:209:17": failed to extract shortcode: template for shortcode "shortcodename" not found
I wonder why my content in code blocks has been executed? How can I avoid this?
Thank you.
