Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么加载不了样式? #5

Open
orangbus opened this issue Jun 16, 2017 · 6 comments
Open

为什么加载不了样式? #5

orangbus opened this issue Jun 16, 2017 · 6 comments

Comments

@orangbus
Copy link

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

@Bulandent
Copy link
Owner

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

@orangbus
Copy link
Author

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

@Bulandent
Copy link
Owner

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

@orangbus
Copy link
Author

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

search

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

@Bulandent
Copy link
Owner

Bulandent commented Jun 27, 2017

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

@orangbus
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants