initial: support lqip and responsive image rendering/resizing
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
module:
|
||||
imports:
|
||||
- path: github.com/hugo-mods/lazyimg
|
||||
# replacements forces using local version for dev instead of using the remote:
|
||||
replacements:
|
||||
- github.com/hugo-mods/lazyimg -> ../../.
|
||||
|
||||
# disableKinds is only needed for this exampleSite to surpress some warnings:
|
||||
disableKinds: ["taxonomy", "term"]
|
||||
|
||||
Params:
|
||||
lazyimg:
|
||||
resizer: auto
|
||||
renderer: lqip
|
||||
|
||||
# Resizer options:
|
||||
lqipSize: "120x"
|
||||
maxSize: "1920x"
|
||||
responsiveSizes: ["320x", "640x", "768x", "1024x", "1366x", "1600x", "1920x"]
|
||||
resizeOptions: "Lanczos q95"
|
||||
|
||||
# Renderer options:
|
||||
class: "my-img-class"
|
||||
alt: "My logo"
|
||||
noscript: true
|
||||
Reference in New Issue
Block a user