How do I make hugo "template" markdown onto a html

Recently began moving my personal blog over to hugo, which also means my hugo knowledge is less than 5 hours as of writing.

Basically, I want the “formatting” from the HTML, but use the content from the markdown file to actually fill out the page to make editing in the future easy.

However when actually viewing the page, it seems like hugo just generates its own html using the Markdown. So some of my custom formatting is not getting in. (had also tried doing this for the 404 page before giving up for the same reason)

I tried asking a friend who had managed to do this, but what they did does not seem to work for me (the layout in the md (their project (html), md ))

Also tried looking for some posts here with not much luck.

Here’s the two files (along with the rest of the site’s source)

Using hugo v0.139

What am I doing wrong? Thank you for your answers

I think you must place your layout into layouts/page, look at the documentation to understand the organization: Template lookup order | Hugo.

hint: for a better understanding what’s going to happen if you target a template you might want to (at least) read these two, too

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.