initial: support lqip and responsive image rendering/resizing
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{{/* Input: Input: dict {"responsive": [RESOURCE, ...]}. Output: srcset string */}}
|
||||
|
||||
{{ $images := .responsive }}
|
||||
{{ $srcset := slice }}
|
||||
{{ range $images }}
|
||||
{{ $srcset = append (printf "%s %dw" .Permalink .Width) $srcset }}
|
||||
{{ end }}
|
||||
{{ return (delimit $srcset ",\n") }}
|
||||
Reference in New Issue
Block a user