From 9f59df16ad66ddf3a45792d229a8db52da34e3f6 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 20 Jan 2024 09:15:36 -0600 Subject: [PATCH] move kudos into comments logic --- layouts/_default/single.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5a9ba72..01cae71 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,10 +16,7 @@
{{ .Content }}
- {{- if eq .Site.Params.analytics true }} -
- Enjoyed this post? - {{- end }} + {{- $showComments := true }} {{- if eq .Site.Params.comments false }} {{- $showComments = false }} @@ -27,6 +24,10 @@ {{- $showComments = false }} {{- end }} {{- if ne $showComments false }} +
+ {{- if eq .Site.Params.analytics true }} + Enjoyed this post? + {{- end }} {{- partial "comments" . }} {{- end }}