hexo-theme-keep
hexo-theme-keep copied to clipboard
如何覆盖主题某个文件且不影响后续主题更新
Issue Checklist | Issue 检查清单
- [x] I am using Keep version
4.2.5or later. (使用 Keep4.2.5或更高版本) - [x] I have already read the Troubleshooting page of Hexo and Keep documents. (已阅读 Hexo 故障处理页面 和 Keep 文档)
- [x] I have already searched for current issues, which does not help me. (已搜索 Issues,对我没有帮助)
Other Information | 其它信息
我想修改 themes\keep\layout\_partial\post\ 文件夹下的 reward-author.ejs 文件,请问怎么修改才能不影响后续的主题更新?
做过尝试(问GPT的):
- 在
source文件夹下新建已自定义的reward-author.ejs文件 ,具体路径:source/_includes/_partial/post/reward-author.ejs hexo cleanhexo ghexo s这样没效果
使用readme中给出的git安装方式安装主题,然后直接在原处修改,并且使用git进行版本管理即可。下次主题更新时,使用fetch -> merge获取更新。 仅供参考