diff options
author | Thedro Neely <thedroneely@gmail.com> | 2021-07-31 20:03:54 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2021-07-31 20:03:54 -0400 |
commit | dc706c1fbaaea7b29f8323b78d95e409b468584e (patch) | |
tree | a2dfc93df12c9f63f60de0309a38a7e60990b58f /generators | |
parent | 9c0e76ab43a155936416f98293086ce0f766c738 (diff) | |
download | thedroneely.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.html | 9 |
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> |