Jekyll theme is working on local, but not working on remote

时间:2018-03-09 19:07:51

标签: jekyll

I forked this theme and created a simple pages, modified some css files - setting fonts for specific tags or disable italic on subheadings.

It works like a charm in local. But when I commit the files and push the repo, It shows contents but the design things are gone! I mean, It shows only html contents.

This is the page on local environment:

local

And this is the page on the remote server..?

remote

I can use basic tags and change some properties of tags in CSS, but I don't know about more details.. Could you please give me some kinds of guide or how to fix this problem?

Edit -- Here is my git repository:

https://github.com/soldier4443/soldier4443.github.io

2 个答案:

答案 0 :(得分:1)

_config.yml 中,删除baseurl: "/blog"以阅读baseurl: ""

答案 1 :(得分:0)

仅供参考-如果您的主题在本地工作,但不能在远程工作(OP对此没有问题,尽管这是我的错),请确保将远程存储库命名为.github.io

更多信息。来自官方文档:“ GitHub页面最初配置为位于username.github.io子域下,这就是为什么即使使用自定义域也必须以这种方式命名存储库的原因。”

来源:https://jekyllrb.com/docs/github-pages/