diff options
author | guangmean <angularcorp@outlook.com> | 2019-06-24 09:38:53 +0300 |
---|---|---|
committer | guangmean <angularcorp@outlook.com> | 2019-06-24 09:38:53 +0300 |
commit | 42eb2f6e6dd5d057ac52784f4b80c14d4e9d346a (patch) | |
tree | 0cd331bc0db3aa4d49fa946b2411cbcf4bedec2d | |
parent | 658c185abca6b1a980953887ac1a54da152a7d88 (diff) |
Add shareThis Support
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | layouts/partials/foot.html | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -44,6 +44,7 @@ description = "" copyright = "© 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 }} |