Let’s say I have a page like this and I have about.md with a corresponding about.html layout file.
Normally, I would hardcode the text for this page inside the about.html because there’s no clear structure like in a blog post and there are different CSS styles being used for the different parts. The problem is it’s a little hard for non-technical people to change the text this way.
What’s the correct way to manage this kind of content in Hugo?
For pages that need some custom look and content I create a custom template as you have done and then either put the content in the frontmatter or use shortcodes to wrap sections of the content in the body in html tags with needed classes.
Putting it in the front matter is more user-friendly I think.
Putting content in front matter seems great, I’ll give it a try.
The shortcodes seems great too because then I don’t have to put a lot of text in my frontmatter. I don’t know much about short codes, I’ll do some research.
EDIT: It looks like putting content in frontmatter is a bad idea because of unpredictable <p> tags. I’ll check out the shortcodes method instead.