Change default names for contributor's portrait #16

Merged
mih merged 1 commit from msz/www.trr379.de:portraitpat into main 2026-02-12 04:29:16 +00:00

View file

@ -1,6 +1,6 @@
{{ define "main" }}
{{- $images := .Resources.ByType "image" }}
{{- $portrait := $images.GetMatch (.Params.portrait | default "*thumbnail*") }}
{{- $portrait := $images.Get .Params.portrait | default ($images.GetMatch "*portrait*") | default ($images.GetMatch "*thumbnail*") }}
<header>
{{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }}
{{ partial "breadcrumbs.html" . }}