refactor: citations

This commit is contained in:
Ben Goldsworthy 2025-05-15 11:08:14 +02:00
parent de341f4191
commit 810805f9ab
No known key found for this signature in database
6 changed files with 76 additions and 54 deletions

View file

@ -21,7 +21,7 @@
itemprop="image">
<img itemprop="thumbnail"
class="u-photo gallery__thumbnail"
{{ if ( or ( eq .MediaType.SubType "svg" ) ( eq .MediaType.SubType "gif" ) ) }}
{{ if ( in ( slice "avif" "svg" "gif" ) .MediaType.SubType ) }}
src="{{ .RelPermalink }}"
{{ else }}
{{ with .Resize "600x webp" }}