Skip to content

Commit

Permalink
Merge pull request #164 from jamebal/develop
Browse files Browse the repository at this point in the history
feat: 博客文章中可点击预览图片
  • Loading branch information
jamebal authored Sep 26, 2024
2 parents 73d3741 + 2ab2864 commit 3c48610
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@
img.on('load', function () {
img.removeClass("lazy");
})
if (!img.parent().is("a")) {
new Viewer(img.get(0), {
navbar: false,
toolbar: false
});
}
observer.unobserve(entry.target);
}
});
Expand Down

0 comments on commit 3c48610

Please sign in to comment.