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

github.com/guangmean/Niello.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguangmean <angularcorp@outlook.com>2019-06-24 09:38:53 +0300
committerguangmean <angularcorp@outlook.com>2019-06-24 09:38:53 +0300
commit42eb2f6e6dd5d057ac52784f4b80c14d4e9d346a (patch)
tree0cd331bc0db3aa4d49fa946b2411cbcf4bedec2d
parent658c185abca6b1a980953887ac1a54da152a7d88 (diff)
Add shareThis Support
-rw-r--r--README.md4
-rw-r--r--layouts/partials/foot.html4
2 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 75ca2b8..55cc996 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,7 @@ description = ""
copyright = "&#xA9; 2019 by guangmean. All Rights Reserved."
google_ad_client = "ca-pub-******"
ga = "UA-******"
+sharethis = ""
[menu]
[[menu.niello]]
@@ -61,6 +62,9 @@ ga = "UA-******"
# Google Adsense & Google Analytics
Niello support Google Adsnese code by configure the google_ad_client param in [params] block and Google Analytics code by the ga param in the site config.toml as abover.
+# ShareThis
+Niello support share your content to other platforms by ShareThis.
+
# Demo
A fully demo is available here: [https://www.angularcorp.com](https://www.angularcorp.com)
diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html
index fd8c4e2..3d5f548 100644
--- a/layouts/partials/foot.html
+++ b/layouts/partials/foot.html
@@ -14,3 +14,7 @@ ga('create', '{{- .Site.Params.ga -}}', 'auto'); ga('send', 'pageview')
</script>
<script src="//www.google-analytics.com/analytics.js" async defer></script>
{{ end }}
+
+{{ if .Site.Params.sharethis }}
+<script async src="https://platform-api.sharethis.com/js/sharethis.js#property={{- .Site.Params.sharethis -}}&product="sticky-share-buttons"></script>
+{{ end }}