Add 'u-photo' class to image elements for consistent styling

This commit is contained in:
Fundor333
2025-07-28 17:43:44 +02:00
parent 0b83cb3bac
commit a44b61e8ef

View File

@@ -1,12 +1,12 @@
{{- if .IsBlock -}}
<figure>
<img class="center-img" src="{{ .Destination | safeURL }}"
<img class="center-img u-photo" src="{{ .Destination | safeURL }}"
{{- with .PlainText }} alt="{{ . }}"{{ end -}}
>
{{- with .Title }}<figcaption>{{ . }}</figcaption>{{ end -}}
</figure>
{{- else -}}
<img class="center-img" src="{{ .Destination | safeURL }}"
<img class="center-img u-photo " src="{{ .Destination | safeURL }}"
{{- with .PlainText }} alt="{{ . }}"{{ end -}}
{{- with .Title }} title="{{ . }}"{{ end -}}
>