Skip to content

lightgallery and Admonition #362

Answered by foxdie987
foxdie987 asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you, I check file path but it's correct and images are showing just fine.

I figured it out, I went back and check the document at https://hugodoit.pages.dev/basic-markdown-syntax/, and realized that:
![Alt text](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat") => recognized by LightGallery by adding a caption.
![Minion](https://octodex.github.com/images/minion.png) => it won't be parsed by LightGallery without caption I think.

As for now, the issue went away if I add a caption to images.

{{< admonition type=abstract title="Click to fold" open=false >}}
![alt text](./images/path to picture  "caption text")
{{< /admonition >}}

So lightgalery and picture in …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@foxdie987
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by HEIGE-PCloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants