I started with Hugo but dont find good examples for customization. I need to render all posts in a category called e.g. "video" to show on main site within a template "list.html".
How to change the code from term.html template to adress only this single category? Any help would be deeply appreciated!
<div class="container">
<article>
<main>
<h1>{{ $.Scratch.Get "Title" }}</h1>
<ul class="terms">
{{ range $key, $value := .Data.Terms }}
<li>
<a href="{{ (print "/" $.Data.Plural "/" $key) | relURL }}">
{{ $key }}
</a>
({{ len $value }})
</li>
{{ end }}
</ul>
</main>
</article>
</div>
I developed following code for category called "cats" based on list.html available in my theme:
If it is in list.html, it shows only posts in this particular category. Or it can be put in a separate partial template cats.html