discoform / point-zero

Point Zero is a truly minimal micro-blog theme for Jekyll. Point Zero eschews many of the typical blogger "must-haves" in pursuit of an uncluttered and esoteric reading experience.

Home Page:https://point-zero.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add user controls for image treatments

discoform opened this issue · comments

commented

_data/picture.yml

Jekyll Picture Tag has the following settings fir the theme:

presets:
  default:
    markup: auto
    nomarkdown: false
    formats: [original]
    widths: [414, 600, 700, 800, 1127]
    fallback_width: 700
    fallback_format: original
    data_sizes: true
    dimension_attributes: true
    attributes:
      img:  loading="lazy" data-sizes="auto"'

Most of these settings should remain for markup and performance reasons, but some users may want to use more images sizes, or fewer. Some may also want to use .webp format.

The following settings can be added to the config collection in admin/config.yml

  • Make widths options selectable
  • Make .webp format optional