image optimisation #4
After Width: | Height: | Size: 1.8 MiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 412 KiB |
After Width: | Height: | Size: 402 KiB |
After Width: | Height: | Size: 867 KiB |
After Width: | Height: | Size: 531 KiB |
BIN
assets/images/small/Vector (Stroke).png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
assets/images/small/illus-basics.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
assets/images/small/ldap-diagram.png
Normal file
After Width: | Height: | Size: 368 KiB |
BIN
assets/images/small/ldap-sso-diagram.png
Normal file
After Width: | Height: | Size: 362 KiB |
BIN
assets/images/small/sso-diagram.png
Normal file
After Width: | Height: | Size: 364 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 400 KiB |
After Width: | Height: | Size: 435 KiB |
|
@ -5,12 +5,12 @@
|
||||||
{{- with $mainPath := .Get 0 }}
|
{{- with $mainPath := .Get 0 }}
|
||||||
|
|
||||||
{{- with $i := resources.Get (printf "%s%s" $imgpath $mainPath) }}
|
{{- with $i := resources.Get (printf "%s%s" $imgpath $mainPath) }}
|
||||||
{{ $resizedImage := $i.Process "resize 720x" }}
|
{{ $resizedImage := $i.Process "resize 1920x" }}
|
||||||
<picture class="{{ $class}}">
|
<picture class="{{ $class}}">
|
||||||
{{ $smallpath := "images/small/" }}
|
{{ $smallpath := "images/small/" }}
|
||||||
|
|
||||||
{{- with $smallImage := resources.Get (printf "%s%s" $smallpath $mainPath ) }}
|
{{- with $smallImage := resources.Get (printf "%s%s" $smallpath $mainPath ) }}
|
||||||
{{ $smallResized := $smallImage.Process "resize 720x" }}
|
{{ $smallResized := $smallImage.Process "resize 1080x" }}
|
||||||
<source srcset="{{ $smallResized.RelPermalink }}" media="(max-width: 768px)">
|
<source srcset="{{ $smallResized.RelPermalink }}" media="(max-width: 768px)">
|
||||||
{{- end}}
|
{{- end}}
|
||||||
<img src="{{ $resizedImage.RelPermalink }}" alt="{{ $alt }}">
|
<img src="{{ $resizedImage.RelPermalink }}" alt="{{ $alt }}">
|
||||||
|
|