mirror of
https://github.com/Crocmagnon/blog.git
synced 2024-12-22 05:41:55 +01:00
Fix img ratio
This commit is contained in:
parent
8c0989aaf0
commit
f68204babd
1 changed files with 1 additions and 1 deletions
|
@ -9,6 +9,6 @@
|
|||
{{ $resize := printf "%s%s" (.Get "resize" | default "720x webp Lanczos ") $resizeAdd }}
|
||||
{{ $image := $origImage.Resize $resize }}
|
||||
<a href="{{ $origImage.RelPermalink }}">
|
||||
<img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" alt='{{ .Get "alt" }}'>
|
||||
<img src="{{ $image.RelPermalink }}" alt='{{ .Get "alt" }}'>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue