Skip to content

mkdocs-glightbox does not work properly with Material for MkDocs blogs #60

@lilacpixel

Description

@lilacpixel

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:

  1. 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
  1. Create a blog post and add an image.
  2. Build site and open the main blog page. The image is missing its link and cannot be clicked to view in a lightbox.
  3. 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! 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions