Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: 文章列表封面图模式使用小图交替导致分页失败 #155

Open
peakliuz opened this issue Sep 28, 2024 · 5 comments
Open
Labels
bug Something isn't working

Comments

@peakliuz
Copy link

是什么 Halo 版本出现了此问题?

2.19.0

使用的 Dream 版本是多少?

1.3.2

在线博客地址

No response

BUG 内容

测试了官方主题,分页没有问题,默认列表模式也没问题

相关 Console 日志输出

No response

附加信息

No response

@peakliuz peakliuz added the bug Something isn't working label Sep 28, 2024
@mjsoftking
Copy link
Contributor

发一下网站预览看看,没有遇到这个问题

@Leaf-Oct
Copy link

Leaf-Oct commented Nov 2, 2024

发一下网站预览看看,没有遇到这个问题

我也遇到了这个bug。
halo版本2.13.1,dream主题版本是当前最新的1.3.2。
复现方法是,进入halo后台,左侧列表"主题",右边点开"文章设置"页面,设置项"文章列表封面图模式",设为"小图模式"(左、右、交替都会触发这个bug)。博客前台,没有设置封面的文章就会消失不见。当未设封面的文章较多,即消失的文章较多时,就会出现分页异常。
图1是"文章列表封面图模式"设置为"默认模式"时的显示。可以看到上面有两篇文章,没有设置封面,能显示出来。图2是"文章列表封面图模式"设置为"小图模式 交替",上面两篇未设置封面的文章就消失不见了
Screenshot from 2024-11-02 21-49-21
Screenshot from 2024-11-02 21-49-47

@Leaf-Oct
Copy link

Leaf-Oct commented Nov 2, 2024

补充:我添加了非常多的无封面文章作为测试。发现这些文章并不是完全消失,而是会占据对应的页码,但是又不显示。
例如在图中,无封面文章数量多到能开7页,但是因为每一页的文章都是无封面的,所以都消失了,使得页面显示空白。我想这大概就是楼主所谓的"分页失败"吧
Screenshot from 2024-11-02 21-54-44

@mjsoftking
Copy link
Contributor

@Leaf-Oct @peakliuz
image
应该是修了,但没有发布

@Leaf-Oct
Copy link

Leaf-Oct commented Nov 3, 2024

@mjsoftking 感谢解答,我按照这个commit修改了article_list.html文件,无封面的文章也能正常显示了。该bug解决,此帖终结。
期待halo-theme-dream2.0下一个release~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants