hexo icon indicating copy to clipboard operation
hexo copied to clipboard

hexo 2.4+striped主题的问题

Open lxdlife opened this issue 12 years ago • 4 comments

在使用hexo 2.3版本+striped主题的时候,一切正常。 升级到2.4版本,hexo g后生成public目录,此目录下的的index.htm文件是striped主题的内容,而不是文章的内容。 由于2.3一切正常,初步判定是hexo 2.4的问题,能不能解决一下?

lxdlife avatar Dec 30 '13 11:12 lxdlife

因為此主題的 source 資料夾內有 index.html 檔案,覆蓋了原本的route。

Because this theme contains a index.html file in source folder which overrides the original route.

tommy351 avatar Dec 30 '13 11:12 tommy351

1、删除了striped里source文件夹下的index.htm,就没法打开主页了。 2、删除整个public,然后 hexo g重新生成public,还是没法打开主页,浏览器里提示还是寻找主题里的index.htm 3、route是什么变量?如何设置才能解决这个问题呢? 菜鸟一个,不太懂编码,请指教,万分感谢。

lxdlife avatar Dec 30 '13 13:12 lxdlife

hexo clean後再生成一次試試看

tommy351 avatar Dec 30 '13 13:12 tommy351

感谢你的提示,问题解决了 首先,需要删除主题文件夹下的source里的index.htm 然后 ,运行hexo clean 这样就可以了。

最后 ,感谢你开发出这么好的一个程序,祝hexo越来越好 —————show my poor english————— thanks for your reply,the problem is solved: first ,you need to delete the index.htm file which localted in striped/source/. then,run the command hexo clean that's all。

lastly,thanks for your excellent work and wish hexo became better.

lxdlife avatar Dec 30 '13 13:12 lxdlife