Better code highlighting in Hugo with Torchlight

2022-11-18 #hugo

During my latest redesign, I replaced Hugo's default code highlighting with Torchlight. In this post, I'll explain how I set up Torchlight CLI for my Hugo site. (Although this can be applied to any static site.)

Read more


Using markdown in HTML (in markdown) in Hugo

2022-07-25 #hugo

How to write HTML in Hugo without losing markdown capabilities.

Read more


How to schedule posts on a static Hugo site with Netlify and GitHub Actions

2020-10-08 #netlify #hugo #static-sites #github-actions

If all went well, this post was published automatically. I added the ability to schedule posts on my static blog (built with Hugo). I wrote a short GitHub Action to trigger a build on Netlify every morning.

Read more


Caption images with markdown render hooks in Hugo

2020-06-08 #hugo

I've been looking for a way to add captions to markdown images without falling back to raw HTML. It turns out Hugo supports this with render hooks.

Read more