no kudos on 404

This commit is contained in:
John Bowdre 2024-01-21 21:58:39 -06:00
parent 209ef01655
commit 51011ce0bc
3 changed files with 9 additions and 1 deletions

View file

@ -25,6 +25,7 @@ giscusStrict = "0"
giscusTheme = "noborder_gray" giscusTheme = "noborder_gray"
analytics = true analytics = true
kudos = true
[author] [author]
name = "John Bowdre" name = "John Bowdre"

View file

@ -3,6 +3,7 @@ title = "404'd!"
noindex = true noindex = true
timeless = true timeless = true
comments = true comments = true
kudos = false
+++ +++
We're not sure what you were looking for but it's not here. We're not sure what you were looking for but it's not here.

View file

@ -42,7 +42,13 @@
{{- end }} {{- end }}
{{- if ne $showComments false }} {{- if ne $showComments false }}
<hr> <hr>
{{- if eq .Site.Params.analytics true }} {{- $showKudos := true }}
{{- if eq .Site.Params.kudos false }}
{{- $showKudos = false }}
{{- else if eq .Params.kudos false }}
{{- $showKudos = false }}
{{- end }}
{{- if and (eq .Site.Params.analytics true) (ne $showKudos false) }}
<span class="post_kudos">Enjoyed this post?&nbsp;<button class="tinylytics_kudos"></button></span> <span class="post_kudos">Enjoyed this post?&nbsp;<button class="tinylytics_kudos"></button></span>
{{- end }} {{- end }}
{{- partial "comments" . }} {{- partial "comments" . }}