Mereithhh / vanblog

一款简洁实用优雅的个人博客系统
https://vanblog.mereith.com
GNU General Public License v3.0
2.78k stars 393 forks source link

[Bug]: PhotoView issue #172

Closed Mister-Hope closed 1 year ago

Mister-Hope commented 1 year ago

问题描述 | Describe the bug

Click here in https://blog-demo.mereith.com/post/28

image

You will trigger an preview panel, and it's definitely not expected.

Also the hidden donate image is found as page images.

image

You may need to update photoview selector and limits it to main content of page。

more

Support an extra attribute which allows not collecting an image could be better.

E.g.: vuepress-plugin-photo-swipe and vuepress-plugin-lightgallery both support no-index on image (e.g.: <img src="httpsa://example.com/image.png" no-index />) by setting selector to .theme-default-content :not(a) > img:not(no-index)

Mereithhh commented 1 year ago

fixed