fix(css): fix some css bugs
This commit is contained in:
20
layouts/_default/_markup/render-image.html
Normal file
20
layouts/_default/_markup/render-image.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<figure>
|
||||
<img
|
||||
{{ $res := resources.Get "svg/loading.svg" | minify }}
|
||||
src="{{ $res.RelPermalink }}"
|
||||
data-sizes="auto"
|
||||
data-src="{{ .Destination | safeURL }}"
|
||||
alt="{{ .Text }}"
|
||||
{{- with .Title -}}
|
||||
title="{{ . }}"
|
||||
{{- end -}}
|
||||
class="lazyload"
|
||||
>
|
||||
<figcaption class="image-caption">
|
||||
{{- if .Title -}}
|
||||
{{- .Title -}}
|
||||
{{- else -}}
|
||||
{{- .Text -}}
|
||||
{{- end -}}
|
||||
</figcaption>
|
||||
</figure>
|
||||
Reference in New Issue
Block a user