-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,517 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
glightbox-manual: true | ||
--- | ||
|
||
You can enable lightbox of images separately by adding page metadata ```glightbox-manual: true``` through markdown_extensions ```meta``` and adding ```on-glb``` class on the image through markdown_extensions ```attr_list```, and keep other images without lightbox effect. Enable ```meta``` and ```attr_list``` via ```mkdocs.yml```: | ||
|
||
```yaml | ||
markdown_extensions: | ||
- meta | ||
- attr_list | ||
``` | ||
Check more details about ```meta``` on the [official document](https://python-markdown.github.io/extensions/meta_data/). | ||
|
||
Check more details about ```attr_list``` on the [official document](https://python-markdown.github.io/extensions/attr_list/). | ||
|
||
## Demo | ||
|
||
Only images(first two images) with ```on-glb``` class will be added to the lightbox effect. Other images(third image) will be disabled. | ||
|
||
```markdown | ||
--- | ||
glightbox-manual: true | ||
--- | ||
![Lanyu, Taiwan](../images/gallery/blueswen-lanyu.jpeg){ .on-glb } | ||
Lanyu, Taiwan. Credit: Blueswen | ||
![Hallstatt, Austria](../images/gallery/blueswen-hallstatt.jpeg){ .on-glb } | ||
Hallstatt, Austria. Credit: Blueswen | ||
![Obertraun, Austria](../images/gallery/blueswen-obertraun.jpeg) | ||
Obertraun, Austria. Credit: Blueswen | ||
``` | ||
<figure markdown> | ||
|
||
![Lanyu, Taiwan](../images/gallery/blueswen-lanyu.jpeg){ .on-glb } | ||
|
||
<figcaption>Lanyu, Taiwan. Credit: Blueswen</figcaption> | ||
</figure> | ||
|
||
<figure markdown> | ||
|
||
![Hallstatt, Austria](../images/gallery/blueswen-hallstatt.jpeg){ .on-glb } | ||
|
||
<figcaption>Hallstatt, Austria. Credit: Blueswen</figcaption> | ||
</figure> | ||
|
||
<figure markdown> | ||
|
||
![Obertraun, Austria](../images/gallery/blueswen-obertraun.jpeg) | ||
|
||
<figcaption>Obertraun, Austria. Credit: Blueswen</figcaption> | ||
</figure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.