Compare commits

...

3 commits

Author SHA1 Message Date
85a5a68f46 another kudos tweak 2024-01-20 09:17:13 -06:00
9f59df16ad move kudos into comments logic 2024-01-20 09:15:36 -06:00
254496777d kudos tweaks 2024-01-20 09:13:09 -06:00
2 changed files with 6 additions and 5 deletions

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">kudoses:<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?&nbsp;<button class="tinylytics_kudos"></button></span>
{{- end }}
{{- partial "comments" . }} {{- partial "comments" . }}
{{- end }} {{- end }}
<footer class="content__footer"></footer> <footer class="content__footer"></footer>

View file

@ -36,7 +36,7 @@
{{ if eq .Site.Params.analytics true }} {{ if eq .Site.Params.analytics true }}
<!-- tinylytics --> <!-- tinylytics -->
<script src="https://tinylytics.app/embed/z4bwvaCBkF39NcDDLsRu.js?kudos=👏" defer></script> <script src="https://tinylytics.app/embed/z4bwvaCBkF39NcDDLsRu.js?kudos=🎉" defer></script>
{{ end }} {{ end }}
<!-- syntax highlighting --> <!-- syntax highlighting -->