From 33d202b7c6b092f94a90213d9c776b2c809f5e3c Mon Sep 17 00:00:00 2001 From: Andrey Romancev Date: Sun, 16 Dec 2018 14:36:33 +0300 Subject: [PATCH] Add sharethis buttons. --- layouts/_default/baseof.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b1635de..462c9fb 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -47,6 +47,9 @@ {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} {{ template "_internal/google_analytics_async.html" . }} + {{ if (getenv "HUGO_SHARETHISPROPERTY") | and (.Params.sharethis) }} + + {{ end }} {{ end }}