Serve images in next-gen formats #652
Answered
by
rmdhnreza
Mryuksel101
asked this question in
Q&A
-
How can I do that? I am using github pages not netlify |
Beta Was this translation helpful? Give feedback.
Answered by
rmdhnreza
Aug 3, 2022
Replies: 1 comment 2 replies
-
hugo-theme-stack/layouts/_default/_markup/render-image.html Lines 21 to 22 in 5869a7a like this
make sure you enable Lines 139 to 143 in 5869a7a AFAIK, Hugo still not support AVIF for target format, so WebP is the best option for now. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Mryuksel101
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
render-image
hooks.Edit
layouts/_default/_markup/render-image.html
and addwebp
to line 21-22hugo-theme-stack/layouts/_default/_markup/render-image.html
Lines 21 to 22 in 5869a7a
like this
make sure you enable
imageProcessing
on config.yamlhugo-theme-stack/config.yaml
Lines 139 to 143 in 5869a7a
AFAI…