Skip to content

Instantly share code, notes, and snippets.

@tokkonopapa
Created December 31, 2011 14:10
Show Gist options
  • Save tokkonopapa/1544095 to your computer and use it in GitHub Desktop.
Save tokkonopapa/1544095 to your computer and use it in GitHub Desktop.
Octopressにはてなボタンを追加する
# Twitter
twitter_tweet_button: true
twitter_tweet_button_lang: ja
# Google +1
google_plus_one: true
google_plus_one_size: medium
google_plus_one_lang: ja
# Facebook Like
facebook_like: true
facebook_lang: ja_JP
facebook_appID:
<div class="sharing">
{% if site.twitter_tweet_button %}
<a href="http://twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}" data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}" {% if site.twitter_tweet_button_lang %}data-lang="{{ site.twitter_tweet_button_lang }}"{% endif %}>Tweet</a>
{% endif %}
{% if site.google_plus_one %}
<div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>
{% endif %}
<a href="http://b.hatena.ne.jp/entry/" class="hatena-bookmark-button"
data-hatena-bookmark-layout="standard"
data-hatena-bookmark-url="{{ site.url }}{{ page.url }}">
<img src="http://b.st-hatena.com/images/entry-button/button-only.gif"
alt="このエントリーをはてなブックマークに追加" width="20" height="20"
style="border: none">
</a>
{% if site.facebook_like %}
<div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
{% endif %}
</div>
@tokkonopapa
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment