mirror of https://github.com/jpanther/congo.git
Compare commits
2 Commits
b98a7227f8
...
da897907b0
Author | SHA1 | Date |
---|---|---|
stereobooster | da897907b0 | |
stereobooster | 8cc393374c |
|
@ -24,7 +24,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with $resource }}
|
{{ with $resource }}
|
||||||
{{ if (and (ne .MediaType.SubType "svg") $lqip) }}
|
{{ if (and (ne .MediaType.SubType "svg") $lqip) }}
|
||||||
{{ $lqip := (.Resize "20x webp").Content | base64Encode }}
|
{{ $lqip := (.Resize "20x webp q20").Content | base64Encode }}
|
||||||
<picture
|
<picture
|
||||||
style="background: url(data:image/webp;base64,{{ $lqip }}); background-size: cover"
|
style="background: url(data:image/webp;base64,{{ $lqip }}); background-size: cover"
|
||||||
class="{{ $class }}"
|
class="{{ $class }}"
|
||||||
|
|
Loading…
Reference in New Issue