Hello. I have html code that I want to transfer to hugo.
<body>
<main>
<ol>
<li>
<section>
<!-- Some content -->
</section>
</li>
<li>
<section>
<!-- Some content -->
</section>
</li>
<li>
<section>
<!-- Some content -->
</section>
</li>
<ol>
</main>
<body>
I need to fill these sections with content using markdown. I am still new to using hugo, and I do not know which option would be optimal. While I see an option to create a individual md file for each section, and write content in the md file, and then call it in the section. Something, like:
index.html:
<main>
<ol>
<li>
{{ partial "section__first.html" . }}
</li>
<li>
{{ partial "section__second.html" . }}
</li>
<li>
{{ partial "section__third.html" . }}
</li>
</ol>
section__first.html:
<section>
{{ with .Site.GetPage "/sections/first-section.md" }}
{{ .Content }}
{{ end }}
</section>
Сan it be done differently and more conveniently?