diff options
Diffstat (limited to 'generators')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/shortcodes/image.rss.xml | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/image.rss.xml b/generators/hugo/themes/tdro/layouts/shortcodes/image.rss.xml deleted file mode 100644 index 41244e0..0000000 --- a/generators/hugo/themes/tdro/layouts/shortcodes/image.rss.xml +++ /dev/null @@ -1,14 +0,0 @@ -{{ $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` }}"> - <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 | markdownify }}</figcaption> -</figure> |