Dear all,
I’m trying to add a “slide” type to my “blog”. The idea would be to have the slides in markdown format (one file for a full presentation, i.e. several slides within one md file) and have them processed to produce the relevant HTML which is then handled by Reveal.JS
Is there a way to achieve that ?
Thanks,
Indeed. Thanks for RawContent tip. And yes, it’s actually in the doc, ahem, should have read it better… Sorry about that… https://gohugo.io/templates/variables/
For the record, the interesting part of my index.html for slides with reveal.js now reads as
<div class="reveal">
<div class="slides">
<section data-markdown
data-separator="^---"
data-separator-vertical="^--"
data-separator-notes="^Note:"
data-charset="iso-8859-15">
{{ .RawContent }}
</section>
</div>
</div>