Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add user controls for image treatments #21

Open
2 tasks
discoform opened this issue Jul 21, 2021 · 0 comments
Open
2 tasks

add user controls for image treatments #21

discoform opened this issue Jul 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@discoform
Copy link
Owner

_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
@discoform discoform added the enhancement New feature or request label Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant