Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tosi29/inkblotty.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortosi29 <tosi16@gmail.com>2019-03-22 07:28:10 +0300
committertosi29 <tosi16@gmail.com>2019-03-22 07:28:10 +0300
commit20737e1e46465d22acedc3b333348a808a9a7038 (patch)
tree06a9d829b5cabd4c8052ea48192eae4567b69885 /layouts
parent09feb426346b1ba0b8a5cea6a9909413f4fc9f07 (diff)
Local fit of share buttons for "ja"
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/share.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/share.html b/layouts/partials/share.html
index 36bcca5..d24c0c9 100644
--- a/layouts/partials/share.html
+++ b/layouts/partials/share.html
@@ -2,7 +2,11 @@
<span style="float: right;">
<style type="text/css"></style>
<div id="fb-root" style="height: 100%;"></div>
+ {{ if eq .Site.LanguageCode "ja" }}
+ <script async defer crossorigin="anonymous" src="https://connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v3.2"></script>
+ {{ else }}
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2"></script>
+ {{ end }}
<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button_count" data-size="small">
<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&amp;src=sdkpreparse" class="fb-xfbml-parse-ignore">Share</a>
</div>
@@ -10,9 +14,11 @@
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-text="{{ .Title }}" data-url="{{ .Permalink }}" data-show-count="false">Tweet</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
+ {{ if eq .Site.LanguageCode "ja" }}
<a href="http://b.hatena.ne.jp/add?mode=confirm&url={{ .Permalink }}&title={{ .Title }}" class="hatena-bookmark-button" data-hatena-bookmark-layout="basic-counter">
<img src="https://b.st-hatena.com/images/v4/public/entry-button/button-only@2x.png" width="20" height="20" style="border: none;" />
</a>
<script type="text/javascript" src="https://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
+ {{ end }}
</span>
{{ end }} \ No newline at end of file