diff options
author | guangmean <angularcorp@outlook.com> | 2019-06-24 09:46:38 +0300 |
---|---|---|
committer | guangmean <angularcorp@outlook.com> | 2019-06-24 09:46:38 +0300 |
commit | f797e9891040796d66004eeb48853d0fcce4da59 (patch) | |
tree | ae9f94b575604d90f79dbc98dcbab5035c4683b1 | |
parent | 42eb2f6e6dd5d057ac52784f4b80c14d4e9d346a (diff) |
ShareThis
-rw-r--r-- | layouts/partials/foot.html | 4 | ||||
-rw-r--r-- | layouts/partials/head.html | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html index 3d5f548..fd8c4e2 100644 --- a/layouts/partials/foot.html +++ b/layouts/partials/foot.html @@ -14,7 +14,3 @@ 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 }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3f43ece..846a0ef 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -23,4 +23,7 @@ }); </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 }} </head> |