blueswen / mkdocs-glightbox

A MkDocs plugin supports image lightbox (zoom effect) with GLightbox.
https://blueswen.github.io/mkdocs-glightbox/
MIT License
115 stars 14 forks source link

[Feature] Add more flexibility #2

Closed BoxedBrain closed 1 year ago

BoxedBrain commented 1 year ago

Hi,

it would be great to control the behavior for specific images using the attribute-list syntax in combination with some global options, or even by page using the metadata option.

For example, having the ability to:

blueswen commented 1 year ago

I had thought about this feature before, but I didn't implement this to keep this plugin simple at first. Glad to hear someone need this too.

I will add this feature later. Thanks for the advice and great ideas 😄.

blueswen commented 1 year ago

Hi @BoxedBrain,

we are support disabling lightbox by a specific image or a specific page since v0.2.0. Thanks for the ideas, they save me a lot of time, but I only implemented disabling logic to keep this plugin setting as simple as possible.

If there is anything advice for this new feature just let me know 😊.