After a year long of using jekyll, I am finding Hugo’s speed and flexibility to be a delight. However, there’s one feature I miss from my Jekyll, which was describing custom layouts in the front matter. For example, my blog posts have a paging section (showing next and previous posts) which is something also showing in my About or Projects page. Is there a way to provide a custom layout for specific pages?
# Jekyll example
---
layout: post
title: Blogging Like a Hacker
---
# about page YAML
---
layout: single-col
title: About
---
I was scratching my head trying to figure out why a single layout for a type wasn’t getting applied (after I saw it had been) and realized after reading @bep comment it was due to me trying to overload type in my front matter for an entirely different purpose.