Add 'u-photo' class to image elements for consistent styling
This commit is contained in:
@@ -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 -}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user