Convert covers to WebP, how? #539
-
I like to convert my covers to WebP. WebP is supported since Hugo 0.83. I had a look at
Hugo Docs says:
But I have no idea "where" I should add webp to Can someone point me in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Replace: Which reminds me to make sure I did not forget to make that change in a personal fork after I did updates for sending upstream (here). |
Beta Was this translation helpful? Give feedback.
Replace:
{{ printf "%s %s" (($cover.Resize (printf "%sx" $size)).Permalink) (printf "%sw ," $size) -}}
with{{ printf "%s %s" (($cover.Resize (printf "%sx webp" $size)).Permalink) (printf "%sw ," $size) -}}
Which reminds me to make sure I did not forget to make that change in a personal fork after I did updates for sending upstream (here).