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

在本地服务器上部署成功,可是在服务器上跑就会没有格式 #67

Open
RuiTan opened this issue Oct 14, 2017 · 2 comments

Comments

@RuiTan
Copy link

RuiTan commented Oct 14, 2017

如题,我用了您的theme创建的,在本地跑都是没问题的,可是deploy到服务器上,就会格式全丢。
我打开了public文件夹,直接点击里面的index文件,浏览器显示的也是格式全丢,和服务器上一样。
这是为甚么?是css地址错了吗?

@pdog18
Copy link

pdog18 commented Mar 9, 2018

修改_config.yml至下方

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:

@weijie0
Copy link

weijie0 commented Mar 18, 2021

如题,我用了您的theme创建的,在本地跑都是没问题的,可是deploy到服务器上,就会格式全丢。
我打开了public文件夹,直接点击里面的index文件,浏览器显示的也是格式全丢,和服务器上一样。
这是为甚么?是css地址错了吗?

测试通过:hexo.weijie.live

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

3 participants