In the authors branch bundle, each author’s branch bundle has a user defined param defined to anchor the image that falls back to the site configuration. I would like to fetch this param in the authors taxonomy page. How to do that?
.content
├── authors
│ ├── _index.md
│ ├──mark
│ │ ├── _index.md
│ │ └── portrait.jpg
│ └──lucy
│ ├── _index.md
│ └── portrait.jpeg
{{- $terms := .Data.Terms.ByCount }}
{{ range where $terms "Count" ">=" 1 }}
<a href="{{ .Page.RelPermalink }}" >
{{- with (.Page.Resources.GetMatch "portrait.*") }}
{{- $anchor := $.Param "author.image_anchor" | default "Smart" }}
{{- with .Process (printf "fill 90x90 webp %s" $anchor) }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" loading="eager" alt="{{ .Page.Params.author.name }}">
{{ end }}
{{- end }}
</a>
{{ end }}
EDIT: This works, but if I delete the front matter, the site refreshes, but one has to delete the public folder to revert to default, or even adding back the param and again having to delete the public folder.
{{- $terms := .Data.Terms.ByCount }}
{{ range where $terms "Count" ">=" 1 }}
<a href="{{ .Page.RelPermalink }}" >
{{- $anchor := .Page.Param "author.image_anchor" | default "Smart" }}
{{- with (.Page.Resources.GetMatch "portrait.*") }}
{{- with .Process (printf "fill 90x90 webp %s" $anchor) }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" loading="eager" alt="{{ .Page.Params.author.name }}">
{{ end }}
{{- end }}
</a>
{{ end }}