From 01b42fd489eec2c7a07214c605fff2406e336899 Mon Sep 17 00:00:00 2001 From: karthik Date: Wed, 4 Dec 2019 18:54:26 +0530 Subject: add disqus & analytics --- layouts/_default/single.html | 6 +++++- layouts/index.html | 2 +- layouts/partials/footer.html | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6369bec..f36d519 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,8 +10,12 @@ {{ . }} {{ end }} +
+ {{if .Site.Params.disqus }} + {{ template "_internal/disqus.html" . }} + {{end}} +
- {{else}}

{{.Title}}

diff --git a/layouts/index.html b/layouts/index.html index de114d1..f6ce3e7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{define "main"}} {{- partial "hero.html" . -}}
-

Recent Posts

+

Recent Posts

{{range first 5 .Site.RegularPages }} {{if eq .Section "post"}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a1b7d6c..4ff1c0b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,4 +2,7 @@
{{.Site.Copyright}} | Powered by Hugo
+ {{ if .Site.Params.analytics }} + {{ template "_internal/google_analytics.html" . }} +{{ end }} -- cgit v1.2.3