everfu / hexo-theme-solitude

一款设计师风格的 Hexo 主题,支持懒加载、PWA、Latex以及多种评论系统。
https://www.efu.me
MIT License
439 stars 37 forks source link

[Feature]: galleryGroup 相册图库支持分行参数 #297

Open NooAcc opened 2 weeks ago

NooAcc commented 2 weeks ago

前置确认

⚠️ 搜索issues中是否已存在类似问题

操作系统类型?

Windows

运行的Hexo版本是?

Hexo 7.0.0

你所使用的主题版本是稳定/最新?

稳定版(main)

问题描述 😯

问题描述: 使用galleryGroup标签时,galleryGroup的封面会生成在一行,封面越多越密集。 image

下面是我复现bug时使用的index.md index.md

终端日志 📒

"npm ls -dept 0"的结果如下:

hexo-site@0.0.0 D:\SoftWare\Code\Github\solitude
+-- hexo-generator-archive@2.0.0
+-- hexo-generator-category@2.0.0
+-- hexo-generator-index@3.0.0
+-- hexo-generator-tag@2.0.0
+-- hexo-renderer-ejs@2.0.0
+-- hexo-renderer-marked@6.3.0
+-- hexo-renderer-pug@3.0.0
+-- hexo-renderer-stylus@3.0.1
+-- hexo-server@3.0.0
+-- hexo-theme-landscape@1.0.0
`-- hexo@7.2.0

"hexo s -debug"没有产生报错,就不贴上来了。

everfu commented 2 weeks ago

有没有试过多个gallerygroup,逻辑是对的

everfu commented 2 weeks ago
<div class="gallery-group-main">
{% galleryGroup '壁紙' '收藏的一些壁紙' '/' https://s3.qjqq.cn/47/661f408a2be39.webp!color %}
{% galleryGroup '女孩' '我的女孩' '/posts/e19cb4b7.html#gallery-%E7%9B%B8%E5%86%8C' https://s3.qjqq.cn/47/661f3fcd06662.webp!color %}
</div>
<div class="gallery-group-main">
{% galleryGroup '壁紙' '收藏的一些壁紙' '/' https://s3.qjqq.cn/47/661f408a2be39.webp!color %}
{% galleryGroup '女孩' '我的女孩' '/posts/e19cb4b7.html#gallery-%E7%9B%B8%E5%86%8C' https://s3.qjqq.cn/47/661f3fcd06662.webp!color %}
</div>
NooAcc commented 2 weeks ago

有没有试过多个gallerygroup,逻辑是对的

我试过使用多gallerygroup。 多gallerygroup,虽然在定制化方面会更具有优势,但是感觉在便捷性上会差一些。

NooAcc commented 2 weeks ago

这算bug还是特性啊🤔 算特性的话,我还是老实用butterfly吧😭

3093113975 commented 1 week ago

这算bug还是特性啊🤔 算特性的话,我还是老实用butterfly吧😭

可以设置参数进行,可以提一下

everfu commented 1 week ago

可以按照参数支持换行,下个版本改