chore(style): update code style and add an i18n word
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<figure>
|
||||
{{- /* Lazyload */ -}}
|
||||
{{- $loading := resources.Get "svg/loading.svg" | minify -}}
|
||||
<img src="{{ $loading.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>
|
||||
{{- $caption := .Title | default .Text -}}
|
||||
{{- with $caption -}}
|
||||
<figcaption class="image-caption">
|
||||
{{- . -}}
|
||||
</figcaption>
|
||||
{{- end -}}
|
||||
</figure>
|
||||
Reference in New Issue
Block a user