diff options
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/shortcodes/image.html')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/shortcodes/image.html | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/image.html b/generators/hugo/themes/tdro/layouts/shortcodes/image.html index e90352d..3b211ff 100644 --- a/generators/hugo/themes/tdro/layouts/shortcodes/image.html +++ b/generators/hugo/themes/tdro/layouts/shortcodes/image.html @@ -1,9 +1,15 @@ -{{ $imageFile := print "public" (.Get `source`) }} -{{ $image := imageConfig $imageFile }} +{{- $imageFile := print "public" (.Get `source`) -}} +{{- $image := imageConfig $imageFile -}} <figure> <a href="{{ .Get `source` }}" onclick="return false;"> - <img data-image-zoom src="{{ .Get `source` }}" alt="{{ .Get `title` }}" title="{{ .Get `title` }}" width="{{ $image.Width }}" height="{{ $image.Height }}"/> + <img data-image-zoom + src="{{ .Get `source` }}" + alt="{{ .Get `title` }}" + title="{{ .Get `title` }}" + width="{{ $image.Width }}" + height="{{ $image.Height }}" + /> </a> - <figcaption class="has-text-grey-dark">{{ .Inner | markdownify }}</figcaption> + <figcaption>{{ .Inner | markdownify }}</figcaption> </figure> |