谁能知道博客(来自 github 页)在 github 中显示错误但在本地显示正常的原因?
Can anybody know the reason why the blog(from github pages) displays wrong in the github but ok in local?
我的博客url
我从Github
中选择了模板
我已经在 Ubuntu 中成功安装了 jekyll 并使用命令 "jekyll server" 测试了显示 ok 的博客。
here is the successful image
但是提交到github时显示错误,不知道是什么原因。
here is the wrong image
我的代码在github。下面是 url
有人能找到原因吗?
注意:您的博客 url http://daicoolb.github.io/Beili/ 在欧洲显示正确。
如果您没有看到 CSS 正在运行,这意味着一些 javascript/css 资源被阻止(例如 jsquery.js
hosted by Google)
OP Beili 发现了为什么它在本地工作,而不是在 GitHub 上工作:
When we want to use a css file , we always use a form like "/docs/sth.css
".
But when we commit our files to github-pages, we must add the blog url before the form like this "{{site.baseurl}}/docs/sth.css
".
我的博客url
我从Github
中选择了模板我已经在 Ubuntu 中成功安装了 jekyll 并使用命令 "jekyll server" 测试了显示 ok 的博客。 here is the successful image
但是提交到github时显示错误,不知道是什么原因。 here is the wrong image
我的代码在github。下面是 url
有人能找到原因吗?
注意:您的博客 url http://daicoolb.github.io/Beili/ 在欧洲显示正确。
如果您没有看到 CSS 正在运行,这意味着一些 javascript/css 资源被阻止(例如 jsquery.js
hosted by Google)
OP Beili 发现了为什么它在本地工作,而不是在 GitHub 上工作:
When we want to use a css file , we always use a form like "
/docs/sth.css
".
But when we commit our files to github-pages, we must add the blog url before the form like this "{{site.baseurl}}/docs/sth.css
".