Hello community, I have the latest version of Gohugo and am trying to load a partial and give it a category.
All blog posts that have this category should then be loaded from the blog folder. I’ve tried a few times but I only get errors. Here is my approach. Does anyone have a tip for me? thank you
index.html:
{{ partial "projects_grid" (dict "cat" "dev" )}}projects_grid.html:
{{ range where (where .Pages “Section” “{{.cat}}” ) “.Params.featured” “!=” true }}
{{ if isset .Params “banner_thumb” }}
{{else if isset .Params “banner”}}
{{ end }}
<h3>{{ .Title }}</h3>
{{ .Summary }}
{{ if .Params.urlExt }}
<a href="{{ .Params.urlExt | absLangURL }}" class="link--fullscreen" rel="me noopener"
title="{{- .Params.urlText | markdownify -}}"></a>
{{ end }}
</header>
</article>
{{ end }}