anzhiyu-c / hexo-theme-anzhiyu

安知鱼主题,这是一个简洁美丽的hexo主题。
GNU General Public License v3.0
1.31k stars 202 forks source link

[Bug]: archive_img配置不生效 #184

Open zphj1987 opened 8 months ago

zphj1987 commented 8 months ago

使用的 AnZhiYu 版本? | What version of AnZhiYu are you use?

anzhiyu theme 1.6.12

使用的浏览器? || What browse are you using?

Chrome

是否修改过主题文件? || Has the theme files been modified?

是 (Yes)

使用的系统? || What operating system are you using?

Windows

问题描述 | Describe the bug

themes/anzhiyu/layout/includes/header/index.pug 缺少 archive_img相关的判断,加入下面的后可以配置生效了 else if is_archive()

出现问题的网站 | Website

localhost

ShenDoyle commented 8 months ago

你好,我也遇到了这个问题,目前在 archive_img,tag_img,tag_per_img,category_img,category_per_img 这几个参数也是遇到问题,显示一片空白。 看不懂代码,所以不知道原因。其中 archive_img 把你的代码加入 index.pug 文件的第5行后面之后,配置还是不生效。

FrozenSky7124 commented 5 months ago

你好,我也遇到了这个问题,目前在 archive_img,tag_img,tag_per_img,category_img,category_per_img 这几个参数也是遇到问题,显示一片空白。 看不懂代码,所以不知道原因。其中 archive_img 把你的代码加入 index.pug 文件的第5行后面之后,配置还是不生效。

我也调试了好久,无论是在主题文件里配置 default_top_img archive_img tag_img,还是在 tags/index.md categories/index.md 配置 top_img 都是无效的,查看生成的 .HTML 源文件也没有图片的路径。看来这几个功能应该是有bug。

楼主的代码加上去试了没有效果...

似乎只有页面有这个bug,文章的默认 cover 是正常的。