Hi everyone!
I am new to Hugo and I’ve recently inherited the website with a customized theme where all content is added through front matter variables.
I would like to add a table, however, it does not render properly through front matter variable but works just fine in blog page.
Here’s the template part:
<div class="col-lg-10 mt-5 mt-lg-0">
<div class="section-title">
<h2 class="h1 mb-4">{{ .tabletitle | markdownify}}</h2>
<div class="content pe-0 pe-lg-5">{{.tablecontent | markdownify}}</div>
</div>
</div>
Here’s what I add to the page file:
tablecontent: "
| | | | | |
|---|---|---|---|---|
| | | | | |
| | | | | |
| | | | | |
"
Is there a way to add markdown table through front matter variables? Any guidance is appreciated.
Thanks!


