Closed T-Mux closed 4 years ago
请确认是否已经创建了archives
目录和index.md
,创建方法参考:
https://github.com/Litreily/hexo-theme-snark#add-general-pages
并确保博客目录_posts
不为空
是的,我已创建archives
目录,是用hexo new page "archives"
进行的创建
这是我的source
文件夹目录:
这是archives
文件夹下的index.md
内容:
对比您在README
文件中提供的source
树,发现缺少了source
目录下的一个 index.md
文件
于是尝试用README
文件中提供的代码进行二次覆盖,终端报错
非常头疼,找不到问题出在哪里。是少了source
目录下的那个index.md
文件造成的吗?
你说的终端报错是没有关系的,因为你已经存在对应文件夹了,所以实际上也没有替换。source 目录的index.md
对应的就是你的主页,如果你主页能正常显示说明是可有可无的,不过你可以手动添加,输入
---
layout: page
title: home
---
找到问题了,是hexo 5.0.0
之后不再支持lodash
了,
https://hexo.io/docs/variables#Global-Variables
Lodash has been removed from global variables since Hexo 5.0.0. You-Dont-Need-Lodash-Underscore might be helpful for your migration.
你的hexo应该是5.0.0之后的,我会尽快fix,感谢你的report.
非常感谢作者这么上心,期待更新
@T-Mux 已经fix了,请pull到最新然后再尝试下~
@T-Mux 已经fix了,请pull到最新然后再尝试下~
非常感谢,已经解决!我将close
这个issue
执行
hexo s
进行预览在点击“归档”页面后,终端给出以下报错: