hexo-theme-bubuzou icon indicating copy to clipboard operation
hexo-theme-bubuzou copied to clipboard

为什么加载不了样式?

Open orangbus opened this issue 7 years ago • 6 comments

我在本地测试没什么问题,但是上传到码云就就在不了样式,上传到github上也是一样的,能指教一下吗? 样式文件存在的,都完整的上传了。 1 2 3

orangbus avatar Jun 16 '17 14:06 orangbus

看下资源文件路径是否正确。

Bulandent avatar Jun 19 '17 04:06 Bulandent

目录少了blog ,新的问题来了,我在站点的配置文件添加了搜索的代码,但是搜索没有反应。 博客地址:http://www.orange.net.oschina.io/blog

orangbus avatar Jun 21 '17 10:06 orangbus

全局的配置文件_config.yml里要加上如下配置: search: path: search.xml field: post

Bulandent avatar Jun 22 '17 08:06 Bulandent

确定是在全局中配置了,但是还是不行,不能搜索,我hexo clear 好多次了

search

search: 两个空格 path: search.xml 两个空格 field: post qq 20170627103224 qq 20170627105517

orangbus avatar Jun 27 '17 02:06 orangbus

我查看了你的网站,显示search.xml引入失败。你看下你本地是否有生成这个文件,如果没有的话,那可能是缺少搜索相关的插件包。看下是否少了这个hexo-generator-search

Bulandent avatar Jun 27 '17 06:06 Bulandent

我从新安装了一次,本地是可以搜索的,直节访问:http://localhost:4000/,但是上传之后,路径的会变成:http://localhost:4000/blog ,多加了blog,然后搜索的文件就没有在了,如果在从新变成(配置文件也是手动跟着改变的):http://localhost:4000/,但是还是会抛出这个:http://localhost:4000/search.xml 404 (Not Found),我也不知道为什么。

orangbus avatar Jun 29 '17 08:06 orangbus