一、配置文件说明(_config.yml):
1.Main Configs
url: http://yoursite.com # blog 地址
title: Your name # blog 名称,出现在左上角
subtitle: # title下面的副标题
author: #每篇文章的posted by
simple_search: http://google.com/search #右边搜索框使用的搜索引擎
description:
2.Jekyll & Plugins
paginate: 10 # 每页的文章数量,超过翻页
recent_posts: 5 # 右侧“最近发表”的模块里显示的文章数量
excerpt_link: "Read on →" # 在文章中使用<!-- more -->,列表页将不再显示全文,而是显示“Read on”的链接,指向全文
default_asides: [asides/recent_posts.html, asides/github.html, asides/twitter.html] # 用于配置侧边栏
二、追加新浪微博侧边栏
1.先到微博秀里面生成自己的微博秀嵌入代码。(找出最后的uid和verifier)
2.新建一个weibo.html放置到source/_includes/asides下
{% if site.weibo_uid %}
<section>
<h1>新浪微博</h1>
<ul id="weibo">
<li>
<iframe
width="100%"
height="550"
class="share_self"
frameborder="0"
scrolling="no"
src="http://widget.weibo.com/weiboshow/index.php?width=0&height=550&ptype={% if site.weibo_pic %}1{% else %}0{% endif %}&speed=0&skin={{weibo_skin}}&isTitle=0&noborder=1&isWeibo={% if site.weibo_show %}1{% else %}0{% endif %}&isFans={{weibo_fansline}}&uid={{site.weibo_uid}}&verifier={{site.weibo_verifier}}">
</iframe>
</li>
</ul>
</section>
{% endif %}
3.在_config.yml中增加相关的设定
# 其它内容....
default_asides: [asides/recent_posts.html, asides/weibo.html, asides/github.html]
# 其它内容....
# Weibo
# Please refer to http://weibo.com/tool/weiboshow to get your uid and verifier.
weibo_uid: # 填入uid
weibo_verifier: # 填入verifier
weibo_fansline: 0 # 粉丝显示多少行
weibo_show: true # 是否显示最近微博内容
weibo_pic: true # 是否显示微博中的图片
weibo_skin: 10 # 使用哪种配色风格,数字为从1开始的微博秀风格序号
# 其它内容....
4.重新发布后就可以看到相应的效果
备注:效果可以参看我的blog:http://caok.github.com/
原文来自:http://programus.github.com/blog/2012/03/03/add-weibo-sidebar-into-octopress/
有兴趣还可以增加“分享到微博”按钮
http://programus.github.com/blog/2012/03/04/share-weibo-button/
分享到:
相关推荐
并发同步,内存栅栏
使用Python从计算/理解第一,数学第二的角度介绍贝叶斯方法和概率编程。
黑客家庭自动节点 使设备能够与Hackers-HomeAuto-Server系统连接的节点软件 这是一个仓库,包含许多不同的Node实现,包括Python Flask应用程序,用于mqtt和http coms的Arduino代码等。
Hackers: Heroes of the Computer Revolution by Steven Levy and Steven Levy 自己用html转成pdf的~
黑客-家庭自动服务器
Machine Learning for Hackers (中文译名:机器学习-实用案例解析)通过实例讲解机器学习算法,用R实现的,可以一边学习机器学习一边学习R。 是实操型的书,重点放在讲怎么用R做数据挖掘,机器学习的算法更多的是...
Hackers delight 2nd edition黑客必备
Hackers and Painters,黑客与画家,写的非常不错的一本书,这是英文版的。
The Bayesian method is the natural approach to inference, yet it is hidden from readers behind chapters of slow, mathematical analysis. The typical text on Bayesian inference involves two to three ...
伯克利黑客 H @ B研讨会的示例和演示源文件。 目标 使用DCOS和相关的分布式系统部署示例“物联网”摄取管道。 作坊! 中提供了练习。
Memory Barriers: a Hardware View for Software Hackers 讲解内存屏障的好论文,推荐!
Linux Kernel Hackers' Guide Due to the fact that nearly every post to this site recently has been either by rude cracker- wannabes asking how to break into other people's systems or a request for ...
Bayesian Methods for Hackers 书的ipynb格式,可以直接用jupyter打开,书中的代码可直接按shift+enter执行
Linux Basics for Hackers: Getting Started with Networking, Scripting, and Security in Kali (AZW3)
Hackers
Addison Wesley - Hackers Delight__ 2002
研讨会Node4hackers 车间工作存储库node4hackers 活动视频 简介:0:00-04:40 控制台和结尾:04:40-07:00 异步:07:00-19:00 HTTP服务器(无库):19:00-27:50 文件管理(本地):27:50-35:30 Nodejs中的事件...