diff options
author | Matt Stratton <matt.stratton@gmail.com> | 2016-09-25 15:09:57 +0300 |
---|---|---|
committer | Matt Stratton <matt.stratton@gmail.com> | 2016-09-25 15:09:57 +0300 |
commit | e707b4b1ab5373703acc309ab4da9d24b77e760f (patch) | |
tree | 65339dfe79c6d4358b48fe63d259f62cff0de041 /layouts/partials | |
parent | b7a4d153223a97fcf99a0f1a65dba4b26bcee3b9 (diff) |
Customize twitter share button
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer_scripts.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/layouts/partials/footer_scripts.html b/layouts/partials/footer_scripts.html index 9848074..b6fbd04 100644 --- a/layouts/partials/footer_scripts.html +++ b/layouts/partials/footer_scripts.html @@ -6,7 +6,14 @@ <script src="/js/jssocials.min.js"></script> <script> $("#share").jsSocials({ - shares: ["twitter", "facebook", "linkedin", "pinterest"], + shares: ["facebook", "linkedin", "pinterest", + { + share: "twitter", // name of share + label: "Tweet", // share button text (optional) + {{ if (isset .Site.Params.social "twitter" )}} + via: "{{ .Site.Params.social.twitter }}", // custom twitter sharing param 'via' (optional) + {{ end }} + }], url: "{{ .Params.permalink }}", text: "{{ title .Title }}" }); |