嵌入評論的方式有:
- 系統自帶的disqus
- 多說
- 友言
其中多說和友言都是國內的,嵌入方式簡單,訪問速度也比較快,相比之下disqus不易于集成,訪問速度也很慢。
我使用的是友言的評論,下面介紹一下友言評論的集成方法。
- 在_config.yml中增加一項:weibo_share:true
- source/_includes/post/sharing.html中增加
//由于半角會引用代碼,所以以下大括號都為全角,請自行替換
{% if site.weibo_share %}
{% include post/weibo.html %}
{% endif %}
3.source/_includes/post中新建文件:weibo.html
- 訪問http://www.jiathis.com/,獲取代碼
- 訪問http://uyan.cc/,獲取代碼
- 將兩部分獲取的代碼加入weibo.html
大功告成。
其他參考:
http://blog.devtang.com/blog/2012/02/10/setup-blog-based-on-github/
另外博客設置完成后因為引用google的一些資源,會造成訪問非常慢,解決方案請參考這篇博客
http://droidyue.com/blog/2014/06/22/fix-octopress-slow-loading-speed-issue-in-china-mainland/
博客主題及自定義樣式:
http://www.360doc.com/content/12/0215/22/1016783_186940749.shtml