mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-06-18 20:13:31 +08:00
Merge remote-tracking branch 'upstream/master' into enable-left-sidebar
This commit is contained in:
commit
df9bbd1aea
@ -67,6 +67,8 @@ class StackGallery {
|
||||
/// This is done to allow inline images within paragraphs
|
||||
const paragraph = img.closest('p');
|
||||
|
||||
if (!paragraph || !container.contains(paragraph)) continue;
|
||||
|
||||
if (paragraph.textContent.trim() == '') {
|
||||
/// Once we insert figcaption, this check no longer works
|
||||
/// So we add a class to paragraph to mark it
|
||||
|
Loading…
Reference in New Issue
Block a user