Browse Source

fixed image stretching

main
Seth Stubbs 6 months ago
parent
commit
c02f23f09e
  1. 2
      layouts/shortcodes/img.html

2
layouts/shortcodes/img.html

@ -3,4 +3,4 @@
{{ .Scratch.Set "image" ($original.Resize $options) }}
{{ $image := .Scratch.Get "image" }}
{{ $title := .Get 2 }}
<img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" alt="{{ $title }}">
<img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" alt="{{ $title }}">

Loading…
Cancel
Save