I would like to find out what others are doing to separate content from layout with Hugo. Essentially the content markdown files should ideally contain markdown. However I’m encountering a few situations where I’m tempted to just code the content in HTML to accomplish certain layouts.
For example, in the ‘content’ area of a particular page I would like to have a couple of panels with some lists etc - something like this Pen.
It is tempting to either code it completely in the template or do the code the full HTML in the content markdown file. But I’m sure there are better ways to accomplish this.
For example, one way I can envisage doing this is do pull the panels out into data templates. I’m sure I’ve seen somewhere where the data files contained copy etc, and can contain lists etc…
Are there any other suggestions how to accomplish this and to separate the content from the layout?
Looking forward to hearing your suggestions. Thank you.