mirror of
https://github.com/Crocmagnon/blog.git
synced 2024-11-21 23:38:03 +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 }}
|
{{ $resize := printf "%s%s" (.Get "resize" | default "720x webp Lanczos ") $resizeAdd }}
|
||||||
{{ $image := $origImage.Resize $resize }}
|
{{ $image := $origImage.Resize $resize }}
|
||||||
<a href="{{ $origImage.RelPermalink }}">
|
<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>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue