When the mkdocs-glightbox plugin is paired with Material for MkDocs and its built-in blog plugin, the lightbox does not work as intended on blog archive pages. Images on single post pages are linked properly and can be clicked to expand, but the same images are missing the lightbox when viewed on the main post listing and archive pages.
Steps to reproduce:
- Create a new MkDocs site and enable the Material for MkDocs theme,
glightbox, and the blog plugin.
mkdocs.yml
site_name: MkDocs
theme:
name: material
plugins:
- blog
- glightbox
- Create a blog post and add an image.
- Build site and open the main blog page. The image is missing its link and cannot be clicked to view in a lightbox.
- Click on the blog post title to open the single post view. The image is properly linked and pops up the lightbox when clicked.
Previously reported to the mkdocs-material team here.
Thanks for taking a look! 😊
When the
mkdocs-glightboxplugin is paired with Material for MkDocs and its built-in blog plugin, the lightbox does not work as intended on blog archive pages. Images on single post pages are linked properly and can be clicked to expand, but the same images are missing the lightbox when viewed on the main post listing and archive pages.Steps to reproduce:
glightbox, and the blog plugin.mkdocs.ymlPreviously reported to the
mkdocs-materialteam here.Thanks for taking a look! 😊