wujun234 / hexo-theme-tree

MIT License
207 stars 62 forks source link

没有title的文件,生成时会出错。 #60

Closed lthcweb closed 1 year ago

lthcweb commented 1 year ago

如google\baidu的收录验证文件,googlexxxxxxxxxxxxxxxxx.html里面就一行代码,还不能改。 最好是放在source/下面,但生成时会出错。

wujun234 commented 1 year ago

我看了下,我的 googlexxxxxxxxxxxxxxxxx.html 是放在 themes/tree/source 下面的

seekstar commented 1 year ago

放在source/下面,然后在_config.yml里写上skip_render: googlexxxxxxxxx.html

wujun234 commented 1 year ago

我没有碰到报错的情况诶,你这个 source 是指的哪个呢,hexo的?

seekstar commented 1 year ago

对,是hexo博客根目录下的source/_config.yml也是hexo博客根目录下的。好像source/下的都会render,如果不写skip_render确实会报错。这个skip_render是之前在一个英文问答网站上看到的,现在已经找不到了/笑哭 放到themes/tree/source下面的话就不能用原滋原味的hexo-theme-tree了。如果hexo-theme-tree更新了,合并更改可能会有点麻烦。

wujun234 commented 1 year ago

如果你放在 hexo 的 source 下面,就跟主题没关系了。我目前放主题下面,然后git忽略了没有上传