Add sharethis buttons.

This commit is contained in:
Andrey Romancev 2018-12-16 14:36:33 +03:00
parent 914e7ef989
commit 33d202b7c6
No known key found for this signature in database
GPG Key ID: 9C1C0E0087F14BD9

View File

@ -47,6 +47,9 @@
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
{{ template "_internal/google_analytics_async.html" . }} {{ template "_internal/google_analytics_async.html" . }}
{{ if (getenv "HUGO_SHARETHISPROPERTY") | and (.Params.sharethis) }}
<script type='text/javascript' src='//platform-api.sharethis.com/js/sharethis.js#property={{ getenv "HUGO_SHARETHISPROPERTY" }}&product=sticky-share-buttons' async='async'></script>
{{ end }}
{{ end }} {{ end }}
</head> </head>