-
-
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
17 changed files
with
890 additions
and
29 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,26 @@ | ||
You can disable lightbox of images separately by adding ```off-glb``` class through markdown_extensions ```attr_list```. Enable ```attr_list``` via ```mkdocs.yml```: | ||
|
||
```yaml | ||
markdown_extensions: | ||
- attr_list | ||
``` | ||
Check more detail about ```attr_list``` on the [official document](https://python-markdown.github.io/extensions/attr_list/). | ||
|
||
## Demo | ||
|
||
The first image's lightbox is disabled. | ||
|
||
```markdown | ||
![Lanyu, Taiwan](../images/gallery/blueswen-lanyu.jpeg){ .off-glb } | ||
Lanyu, Taiwan. Credit: Blueswen | ||
![Obertraun, Austria](../images/gallery/blueswen-obertraun.jpeg) | ||
Obertraun, Austria. Credit: Blueswen | ||
``` | ||
|
||
![Lanyu, Taiwan](../images/gallery/blueswen-lanyu.jpeg){ .off-glb } | ||
Lanyu, Taiwan. Credit: Blueswen | ||
|
||
![Obertraun, Austria](../images/gallery/blueswen-obertraun.jpeg) | ||
Obertraun, Austria. Credit: Blueswen |
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,34 @@ | ||
--- | ||
glightbox: false | ||
--- | ||
|
||
You can disable lightbox of all images on a specific page by adding page metadata ```glightbox: false``` through markdown_extensions ```meta```. Enable ```meta``` via ```mkdocs.yml```: | ||
|
||
```yaml | ||
markdown_extensions: | ||
- meta | ||
``` | ||
Check more detail about ```meta``` on the [official document](https://python-markdown.github.io/extensions/meta_data/). | ||
|
||
## Demo | ||
|
||
All images' lightbox are disabled on this page. | ||
|
||
```markdown | ||
--- | ||
glightbox: false | ||
--- | ||
![Lanyu, Taiwan](../images/gallery/blueswen-lanyu.jpeg) | ||
Lanyu, Taiwan. Credit: Blueswen | ||
![Obertraun, Austria](../images/gallery/blueswen-obertraun.jpeg) | ||
Obertraun, Austria. Credit: Blueswen | ||
``` | ||
|
||
![Lanyu, Taiwan](../images/gallery/blueswen-lanyu.jpeg) | ||
Lanyu, Taiwan. Credit: Blueswen | ||
|
||
![Obertraun, Austria](../images/gallery/blueswen-obertraun.jpeg) | ||
Obertraun, Austria. Credit: Blueswen |
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
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.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.