move kudos into comments logic

This commit is contained in:
John Bowdre 2024-01-20 09:15:36 -06:00
parent d5626f3b13
commit bf34653697

View file

@ -16,10 +16,7 @@
<div class="content__body"> <div class="content__body">
{{ .Content }} {{ .Content }}
</div> </div>
{{- if eq .Site.Params.analytics true }}
<hr>
<span class="post_kudos">Enjoyed this post?<button class="tinylytics_kudos"></button></span>
{{- end }}
{{- $showComments := true }} {{- $showComments := true }}
{{- if eq .Site.Params.comments false }} {{- if eq .Site.Params.comments false }}
{{- $showComments = false }} {{- $showComments = false }}
@ -27,6 +24,10 @@
{{- $showComments = false }} {{- $showComments = false }}
{{- end }} {{- end }}
{{- if ne $showComments false }} {{- if ne $showComments false }}
<hr>
{{- if eq .Site.Params.analytics true }}
<span class="post_kudos">Enjoyed this post?<button class="tinylytics_kudos"></button></span>
{{- end }}
{{- partial "comments" . }} {{- partial "comments" . }}
{{- end }} {{- end }}
<footer class="content__footer"></footer> <footer class="content__footer"></footer>