By default, the cover is loaded from the page resources folder (same folder).
If the image is not found, the (global) assets folder is searched as well. If found, the same processing is done.
Otherwise, the fallback remains with linking to the image directly.
in site config =>
params:
cover:
hidden: true # hide everywhere but not in structured data
hiddenInList: true # hide on list pages and home
hiddenInSingle: true # hide on single page
per-page in front-matter =>
hidden: true # only hide on current single page
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
- generates images of different sizes
- browser can choose between set of images w.r.t viewport width
- is enabled by default
- supported image formats :
https://gohugo.io/content-management/image-processing/#target-format
- Customizing site config params:
params:
cover:
responsiveImages: false # if want to disable it
linkFullImages: true # if link original image on clicking cover