fix analytics logic

This commit is contained in:
John Bowdre 2024-01-19 20:06:30 -06:00
parent 1d4c7a5878
commit e648a4e34c
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -34,7 +34,7 @@
<link rel="stylesheet" href="{{ "css/risotto.css" | absURL }}">
<link rel="stylesheet" href="{{ "css/custom.css" | absURL }}">
{{ if .Site.Params.analytics }}
{{ if eq .Site.Params.analytics trues }}
<!-- tinylytics -->
<script src="https://tinylytics.app/embed/z4bwvaCBkF39NcDDLsRu.js?kudos" defer></script>
{{ end }}