The only problem with shortcodes, is that it only works in markdown .md
files. If I understand it correctly, a post/page using .html
does not get interpreted/parsed by Hugo. Thus you can only get the Go goodies when using .md
.
Thinking out loud here… what if a “hybrid” .hugo
file was used. Here’s a potential spec example:
---
title: "this is hybrid content"
date: "2012-04-06"
slug: "hybrid-post"
---
<hugo-content type="markdown">
My Hybrid Post
=====
* blah
* blah
</hugo-content>
{{ partial "adbanner.html" . }}
<hugo-content type="html">
<div>
<h3>something else here</h3>
</div>
</hugo-content>
the <hugo-content>
tags would be stripped out, but it’s a way for the parser to find and handle multiple different types and combinations of code & content.