Howto: Embed remarkjs.com slides in Hugo

Sometimes even a tiny one-line commit can be very powerful.

Have a look at

Ant related commits.

If I’m not mistaken, you can see the slides in action here:

1 Like

The idea with this would be to make a single for the post type, and set that post type in the front matter for any presentation content markdown file?

There are lots of ways to do it:

https://github.com/maruel/website/blob/master/layouts/post/single.html

The origin of this commit just tags the post as “slides” and turn on the “slide mode”. A slide post type or a slide section would also do the trick.

Ah, appreciate that @bep!

Just wanted to say thank you, from 9 years in the future. This saved my bacon :bacon:, I was just about to go back to writing it all out by hand :laughing: Hugo really is darned cool.

I said that, and then realised that the very first Remark slide doesn’t implement the Remark ‘classes’. But I can live with it for now!

glaswelltirceredigion.cymru/slides/hope/