fix analytics logic

This commit is contained in:
John Bowdre 2024-01-19 20:06:30 -06:00
parent 5a790710f0
commit 5991a169a4
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
<div class="content__body"> <div class="content__body">
{{ .Content }} {{ .Content }}
</div> </div>
{{- if .Site.Params.analytics }} {{- if eq .Site.Params.analytics true }}
<hr> <hr>
<span class="post_kudos">kudoses:<button class="tinylytics_kudos"></button></span> <span class="post_kudos">kudoses:<button class="tinylytics_kudos"></button></span>
{{- end }} {{- end }}

View file

@ -34,7 +34,7 @@
<link rel="stylesheet" href="{{ "css/risotto.css" | absURL }}"> <link rel="stylesheet" href="{{ "css/risotto.css" | absURL }}">
<link rel="stylesheet" href="{{ "css/custom.css" | absURL }}"> <link rel="stylesheet" href="{{ "css/custom.css" | absURL }}">
{{ if .Site.Params.analytics }} {{ if eq .Site.Params.analytics trues }}
<!-- 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 }}