[Groonga-commit] groonga/gcs.groonga.org [gh-pages] Add Tweet button

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 5日 (木) 13:54:22 JST


Yoji SHIDARA	2012-07-05 13:54:22 +0900 (Thu, 05 Jul 2012)

  New Revision: ce88ae662bc72680629186c4deb302f8d036e81c
  https://github.com/groonga/gcs.groonga.org/commit/ce88ae662bc72680629186c4deb302f8d036e81c

  Log:
    Add Tweet button

  Modified files:
    _includes/post.html

  Modified: _includes/post.html (+9 -0)
===================================================================
--- _includes/post.html    2012-07-05 13:10:52 +0900 (998716a)
+++ _includes/post.html    2012-07-05 13:54:22 +0900 (3cb9bc6)
@@ -5,7 +5,16 @@
 <div class="header">
   <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
   <p class="post-date">{{ post.date | date: '%Y-%m-%d' }}</p>
+<a href="http://twitter.com/share"
+  class="twitter-share-button"
+  data-lang="en"
+  data-via="groonga"
+  data-url="{{ site.url }}{{ page.url }}"
+  data-text="{{ page.title | escape }} ({{ page.date | date: '%Y-%m-%d' }})">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+</div>
   <div class="fb-like" data-href="{{ site.url }}{{ post.url }}" data-send="false" data-width="450" data-show-faces="true"></div>
+  <div>
 </div>
 {% if page.is_index %}
   {{ post.content }}
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index