OleVik / grav-plugin-imgsrcset

Grav ImgSrcset Plugin
MIT License
12 stars 1 forks source link

Disabling on specific pages #7

Closed MelleNi closed 5 years ago

MelleNi commented 5 years ago

Hey,

I know this hasn't been updated in quite sometime, but I like what it does. I've recently built a site where some pages need to use srcset for all images, and others don't. Is there a way to circumvene this plugin on specific pages?

Thank you!

OleVik commented 5 years ago

That should be possible, I'll run some tests when I'm home.

OleVik commented 5 years ago

This can be done in v1.1.0, where you can adapt the settings per Page:

imgsrcset:
  enabled: true
  widths: widths
  sizes: sizes