From ba7dd06bc44a325164ebec3a6aff2152ba9f02cd Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Tue, 17 Sep 2024 18:34:16 +0200 Subject: [PATCH] use smaller image sizes for people --- themes/openrail/layouts/shortcodes/people/person.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/themes/openrail/layouts/shortcodes/people/person.html b/themes/openrail/layouts/shortcodes/people/person.html index d489de6..6e673a9 100644 --- a/themes/openrail/layouts/shortcodes/people/person.html +++ b/themes/openrail/layouts/shortcodes/people/person.html @@ -1,6 +1,11 @@ {{ $data := (index .Site.Data.people .Params.id) -}}
- Picture of {{ $data.name }} + {{- $img := "images/people/default.jpg" }} + {{- with $data.img }} + {{- $img = path.Join "images/people" . }} + {{- end }} + {{- $img_resized := (resources.Get $img).Fill "300x300 Center" }} + Picture of {{ $data.name }}
{{ $data.name }}
{{ with $data.openrail_role -}}

{{ . }}