Gallery
Built-in GLightbox gallery feature can be used by adding attribute data-gallery
through markdown_extensions attr_list
. The image with the same gallery name will be grouped as a galley in the light box. Enable attr_list
via mkdocs.yml
:
Check more details about attr_list
on the official document.
Demo
There are two galleries: taipei and seattle.
Setting gallery with data-gallery attribute
### Taipei
{data-gallery="taipei"}
{data-gallery="taipei"}
### Seattle
{data-gallery="seattle"}
{data-gallery="seattle"}
{data-gallery="seattle"}