mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-06-19 04:23:30 +08:00
Remove unused code
This commit is contained in:
parent
72bf8be7ce
commit
cf515e73bb
@ -77,9 +77,6 @@ class StackGallery {
|
|||||||
if (!isNewLineImage) continue;
|
if (!isNewLineImage) continue;
|
||||||
|
|
||||||
const hasLink = img.parentElement.tagName == 'A';
|
const hasLink = img.parentElement.tagName == 'A';
|
||||||
if (hasLink) {
|
|
||||||
isNewLineImage = img.parentElement.parentElement.tagName == 'P' && img.parentElement.parentElement.textContent.trim() == '';
|
|
||||||
}
|
|
||||||
|
|
||||||
let el: HTMLElement = img;
|
let el: HTMLElement = img;
|
||||||
/// Wrap image with figure tag, with flex-grow and flex-basis values extracted from img's data attributes
|
/// Wrap image with figure tag, with flex-grow and flex-basis values extracted from img's data attributes
|
||||||
|
Loading…
Reference in New Issue
Block a user