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

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stratton <matt.stratton@gmail.com>2016-09-25 15:09:57 +0300
committerMatt Stratton <matt.stratton@gmail.com>2016-09-25 15:09:57 +0300
commite707b4b1ab5373703acc309ab4da9d24b77e760f (patch)
tree65339dfe79c6d4358b48fe63d259f62cff0de041 /layouts/partials
parentb7a4d153223a97fcf99a0f1a65dba4b26bcee3b9 (diff)
Customize twitter share button
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer_scripts.html9
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 }}"
});