Skip to content
Browse files

はてなブックマークボタンを設置

  • Loading branch information...
1 parent 4e0d980 commit ea2b43b8b636630dda88ec5b8d05175b14f73a7a @Watson1978 Watson1978 committed
Showing with 18 additions and 15 deletions.
  1. +8 −6 _layouts/default.html
  2. +4 −4 _layouts/splash.html
  3. +3 −4 css/patch.css
  4. +3 −1 index.html
View
14 _layouts/default.html
@@ -17,11 +17,11 @@
<meta name=viewport content="width=device-width, initial-scale=1.0,maximum-scale = 1.0">
- <link rel=stylesheet href='http://clayallsopp.github.com/rubymotion-tutorial/css/bootstrap.min.css'>
- <link rel=stylesheet href='http://clayallsopp.github.com/rubymotion-tutorial/css/bootstrap-responsive.min.css'>
- <link rel=stylesheet href='http://clayallsopp.github.com/rubymotion-tutorial/css/blog/pygments.css'>
- <link rel=stylesheet href='http://clayallsopp.github.com/rubymotion-tutorial/css/patch.css'>
- <link rel=stylesheet href='http://clayallsopp.github.com/rubymotion-tutorial/css/chapter.css'>
+ <link rel=stylesheet href='/css/bootstrap.min.css'>
+ <link rel=stylesheet href='/css/bootstrap-responsive.min.css'>
+ <link rel=stylesheet href='/css/blog/pygments.css'>
+ <link rel=stylesheet href='/css/patch.css'>
+ <link rel=stylesheet href='/css/chapter.css'>
{% if page.extra_css %}
<link rel=stylesheet href='http://clayallsopp.github.com/rubymotion-tutorial/css/{{page.extra_css}}'>
{% endif %}
@@ -70,6 +70,8 @@
<hr />
<h2>Like it?<small id="spread"> Spread the word</small></h2>
<div id="social">
+ <a href="http://b.hatena.ne.jp/entry/" class="hatena-bookmark-button" data-hatena-bookmark-layout="standard"><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" width="20" height="20" style="border: none;" /></a><script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
+
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://tutorial.rubymotion.jp" data-text="RubyMotion Tutorial: Make iOS Apps With Ruby" data-size="large" data-related="rubymotionjp" data-count="none">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>
@@ -84,4 +86,4 @@
<script src='http://clayallsopp.github.com/rubymotion-tutorial/js/bootstrap.min.js' type="text/javascript"></script>
<script src='http://clayallsopp.github.com/rubymotion-tutorial/js/chapters.js' type="text/javascript"></script>
</body>
-</html>
+</html>
View
8 _layouts/splash.html
@@ -18,9 +18,9 @@
<meta name=viewport content="width=device-width, initial-scale=1.0,maximum-scale = 1.0">
- <link rel=stylesheet href='http://clayallsopp.github.com/rubymotion-tutorial/css/bootstrap.min.css'>
- <link rel=stylesheet href='http://clayallsopp.github.com/rubymotion-tutorial/css/bootstrap-responsive.min.css'>
- <link rel=stylesheet href='http://clayallsopp.github.com/rubymotion-tutorial/css/patch.css'>
+ <link rel=stylesheet href='/css/bootstrap.min.css'>
+ <link rel=stylesheet href='/css/bootstrap-responsive.min.css'>
+ <link rel=stylesheet href='/css/patch.css'>
{% if page.extra_css %}
<link rel=stylesheet href='http://clayallsopp.github.com/rubymotion-tutorial/css/{{page.extra_css}}'>
{% endif %}
@@ -52,4 +52,4 @@
<script src='http://clayallsopp.github.com/rubymotion-tutorial/js/bootstrap.min.js' type="text/javascript"></script>
<script src='http://clayallsopp.github.com/rubymotion-tutorial/js/splash.js' type="text/javascript"></script>
</body>
-</html>
+</html>
View
7 css/patch.css
@@ -54,10 +54,9 @@ table#premium tbody tr:hover th {
background-color: #e9e9e9;
}
-#social .twitter-share-button {
- position: relative;
- top: -9px;
- margin-right:15px;
+#social {
+ position: absolute;
+ height: 60px;
}
#social #facebook-like {
View
4 index.html
@@ -34,9 +34,11 @@ <h2 id="about-me-header">著者について <a href="https://twitter.com/clayall
<hr />
<h2>気に入りましたか?<small id="spread">広めてください</small></h2>
<div id="social">
+ <a href="http://b.hatena.ne.jp/entry/" class="hatena-bookmark-button" data-hatena-bookmark-layout="standard"><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" width="20" height="20" style="border: none;" /></a><script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
+
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://tutorial.rubymotion.jp" data-size="large" data-related="clayallsopp" data-count="none">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 class="fb-like" data-href="http://tutorial.rubymotion.jp/" data-send="true" data-width="450" data-show-faces="true"></div>
</div>
- <hr />
+ <hr />

0 comments on commit ea2b43b

Please sign in to comment.
Something went wrong with that request. Please try again.