diff options
Diffstat (limited to 'web/template/page_header.tmpl')
-rw-r--r-- | web/template/page_header.tmpl | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/web/template/page_header.tmpl b/web/template/page_header.tmpl index e605b349f..388587aaf 100644 --- a/web/template/page_header.tmpl +++ b/web/template/page_header.tmpl @@ -57,11 +57,20 @@ Instance Logo {{- with . }} <a aria-label="{{- .instance.Title -}}. Go to instance homepage" href="/" class="nounderline"> - <img - src="{{- .instance.Thumbnail -}}" - alt="{{- template "thumbnailDescription" . -}}" - title="{{- template "thumbnailDescription" . -}}" - /> + <picture> + {{- if .instance.ThumbnailStatic }} + <source + srcset="{{- .instance.ThumbnailStatic -}}" + type="{{- .instance.ThumbnailStaticType -}}" + media="(prefers-reduced-motion: reduce)" + /> + {{- end }} + <img + src="{{- .instance.Thumbnail -}}" + alt="{{- template "thumbnailDescription" . -}}" + title="{{- template "thumbnailDescription" . -}}" + /> + </picture> <h1>{{- .instance.Title -}}</h1> </a> {{- if .showStrap }} |