Hexo Yelee主题首页部分文章摘要无法显示

最近几天博客中的文章越来越多,出现了一点问题,那就是在所有文章里面可以看到所有的文章,但是首页却不显示最新的文章摘要。查了很多资料,例如Hexo中Yelee主题,首页不显示文章摘要以及试用了yelee主题,为什么主页没有列表显示,完全为空,两个资料都将问题指向了yelee主题下的config文件。

于是我看了一眼文件内容:

1
2
3
search:
on: true
onload: true

但是在yelee/layout/_partial/head.ejs中是这样的:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<script>
var yiliaConfig = {
fancybox: <%=theme.fancybox%>,
animate: <%=theme.animate%>,
isHome: <%=is_home()%>,
isPost: <%=is_post()%>,
isArchive: <%=is_archive()%>,
isTag: <%=is_tag()%>,
isCategory: <%=is_category()%>,
fancybox_js: "<%- theme.CDN.fancybox_js %>",
scrollreveal: "<%- theme.CDN.scrollreveal %>",
search: <%= theme.search.on %>
}
</script>

说明应该用的是on: true,要把onload: true给注释掉,这样操作之后,果然就可以了。

文章目录
|