Here is my code for my category taxonomy page:
{{ define "main" }}
<h2>Questions About {{ .Title }}</h2> (<-- Category Title, works as intended)
{{ range .Pages }}
{{ if gt .ReadingTime 1 }}
{{ .Scratch.Set "readingTime" "minutes" }}
{{ else }}
{{ .Scratch.Set "readingTime" "minute" }}
{{ end }}
(--READING TIME CODE, WORKS AS INTEDED--)
{{ $image := .Params.feature }} (<-- Grab the featured image from specific page front matter, does not work)
{{ $image = resources.Get $image }}
{{ $author := index .Site.Data.authors .Params.author }} (<- Grab the author from front matter, does not work)
{{- $avatar := $author.avatar | default "/images/authors/default.png" -}}
{{- $avatar = ((resources.Get $avatar).Resize "150x150 webp q65") -}}
[ ... ]
How do I get front matter from the various pages in a category to get called correctly here?