Skip to content

Instantly share code, notes, and snippets.

@programus
Created March 3, 2012 14:52
Show Gist options
  • Save programus/1966517 to your computer and use it in GitHub Desktop.
Save programus/1966517 to your computer and use it in GitHub Desktop.
A side bar html for using weibo in Octopress.
# 其它内容....
default_asides: [asides/recent_posts.html, asides/weibo.html, asides/github.html, asides/[Twitter][].html, asides/googleplus.html]
# 其它内容....
# Weibo
# Please refer to http://weibo.com/tool/weiboshow to get your uid and verifier.
weibo_uid: 1098907490
weibo_verifier: abd54ad9
weibo_fansline: 0 # 粉丝显示多少行
weibo_show: true # 是否显示最近微博内容
weibo_pic: true # 是否显示微博中的图片
weibo_skin: 10 # 使用哪种配色风格,数字为从1开始的微博秀风格序号
# 其它内容....
{% 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 %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment