aboutsummaryrefslogtreecommitdiff
path: root/generators
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2021-07-31 20:03:54 -0400
committerThedro Neely <thedroneely@gmail.com>2021-07-31 20:03:54 -0400
commitdc706c1fbaaea7b29f8323b78d95e409b468584e (patch)
treea2dfc93df12c9f63f60de0309a38a7e60990b58f /generators
parent9c0e76ab43a155936416f98293086ce0f766c738 (diff)
downloadthedroneely.com-dc706c1fbaaea7b29f8323b78d95e409b468584e.tar.gz
thedroneely.com-dc706c1fbaaea7b29f8323b78d95e409b468584e.tar.bz2
thedroneely.com-dc706c1fbaaea7b29f8323b78d95e409b468584e.zip
generators/hugo/layouts/shortcodes/image: Remove padding
Diffstat (limited to 'generators')
-rw-r--r--generators/hugo/themes/tdro/layouts/shortcodes/image.html9
1 files changed, 1 insertions, 8 deletions
diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/image.html b/generators/hugo/themes/tdro/layouts/shortcodes/image.html
index afebef4..639e997 100644
--- a/generators/hugo/themes/tdro/layouts/shortcodes/image.html
+++ b/generators/hugo/themes/tdro/layouts/shortcodes/image.html
@@ -1,16 +1,9 @@
{{ $imageFile := print "public" (.Get `source`) }}
{{ $image := imageConfig $imageFile }}
-{{ $ratio := 0 }}
-{{ if lt (mul (div (float $image.Height) $image.Width) 100) 100 }}
-{{ $ratio = mul (div (float $image.Height) $image.Width) 100 }}
-{{ end }}
-
<figure>
<a href="{{ .Get `source` }}" onclick="return false;">
- <div style="padding-bottom: {{ $ratio }}%;">
- <img data-image-zoom src="{{ .Get `source` }}" alt="{{ .Get `title` }}" title="{{ .Get `title` }}" width="{{ $image.Width }}" height="{{ $image.Height }}"/>
- </div>
+ <img data-image-zoom src="{{ .Get `source` }}" alt="{{ .Get `title` }}" title="{{ .Get `title` }}" width="{{ $image.Width }}" height="{{ $image.Height }}"/>
</a>
<figcaption class="has-text-centered has-text-grey-dark">{{ .Inner }}</figcaption>
</figure>