Commit Graph

10 Commits

Author SHA1 Message Date
Aditya Telange 5bc9c5a73b
Allow emabling/disabling responsiveImages per page #518 2021-09-02 20:54:50 +05:30
Ian Grünig dcbe6277bb
Add width and height attributes to cover images (#519)
- Ensures that the browser can allocate the correct amount of space in the document while the image is loading.
- Reduces CLS #499
2021-08-22 11:45:28 +05:30
Aditya Telange 196b82645e
Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
Aditya Telange 2fea5a1062
add browser-level lazy loading to cover images
amend to c353447
2021-03-27 13:16:10 +05:30
Aditya Telange c9fa6c7915
cover: granular controls for hiding cover image #156
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
2020-12-29 16:44:03 +05:30
Aditya Telange bf79c208ae
layouts: use hugo.IsProduction 2020-12-13 20:19:25 +05:30
Aditya Telange 0d8cb9fd15
cover: responsive cover: rm forced q100
- lets quality attribute in imaging section
- https://gohugo.io/content-management/image-processing/#image-processing-config

close #92
2020-11-29 09:39:57 +05:30
Aditya Telange 4cc4604498
cover: add rel="noopener noreferrer"
to links
2020-11-18 15:45:19 +05:30
Aditya Telange 834feb9adc
cover: responsive cover: generate responsive images only in "production" env
- will reduce render time in development env
2020-10-23 11:35:30 +05:30
Niek Blankers 21241c212e
relative-cover: init Responsive cover images (#43)
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
2020-10-22 16:42:26 +05:30