I’ve got this snippet that works fine in my single.html
:
{{ if .Params.showMeta }}
<p class="u-meta">
{{ partial "date.html" (dict "date" .Date) }}
</p>
{{ end }}
But that same snippet doesn’t do anything in a partial called item-card
that renders on the list.html
when it’s included there via {{- partial "item-card.html" . -}}
or on the homepage like this:
{{ range first 1 (where .Site.Pages "Section" "podcast")}}
{{- partial "item-card.html" . -}}
{{ end }}
Can anyone explain why? I’ve been reading the docs a lot and have searched the forum but I’m coming up empty so far. I’m confused because .Params.title
and .Params.description
render correctly later on in that partial.