huxblog-boilerplate
huxblog-boilerplate copied to clipboard
Social media icons are not able to display when deployed using Github pages
Issue description: After changing SNS settings in _config.yml
file, RSS, Twitter, Zhihu, Weibo, Facebook, and Github icons (on both footer and sidebar) do not display when deployed using Github pages.
Example:
Footer error icons:
Sidebar error icons:
However, icons are displayed nicely when using bundle exec jekyll serve
locally
Example:
Footer correct icons:
Sidebar correct icons:
相关问题:链接可以显示但图标无法正常显示
原因:font-awesome链接不可用
解决方法:
将相关文件里(head.html
)的:
<link href="http://cdn.staticfile.org/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
全部更换为:
<link href="https://cdn.staticfile.org/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">