fix/remove images

This commit is contained in:
Robert Parker
2019-12-09 13:24:35 -08:00
parent 7e47b36e80
commit d56ffb0b90
8 changed files with 21 additions and 24 deletions
+2 -5
View File
@@ -1,17 +1,14 @@
{{ $img := .Get 0 }}
{{ $alt := .Get 1 }}
{{ with resources.Get $img }}
{{ $thumb20 := .Resize "2000x" }}
{{ $thumb16 := .Resize "1600x" }}
{{ $thumb12 := .Resize "1200x" }}
{{ $thumb10 := .Resize "1000x" }}
{{ $thumb8 := .Resize "800x" }}
{{ $thumb6 := .Resize "600x" }}
{{ $thumb4 := .Resize "400x" }}
{{ $thumb2 := .Resize "200x" }}
<img
srcset="{{ $thumb2.Permalink }} 200w, {{ $thumb4.Permalink }} 400w, {{ $thumb6.Permalink }} 600w, {{ $thumb8.Permalink }} 800w, {{ $thumb10.Permalink }} 1000w, {{ $thumb12.Permalink }} 1200w, {{ $thumb16.Permalink }} 1600w, {{ $thumb20.Permalink }} 2000w"
src="{{ .Permalink }}"
srcset="{{ $thumb2.Permalink }} 200w, {{ $thumb4.Permalink }} 400w, {{ $thumb6.Permalink }} 600w, {{ $thumb8.Permalink }} 800w, {{ $thumb10.Permalink }} 1000w"
src="{{ $thumb6.Permalink }}"
alt ="{{$alt}}"
>
{{ end }}