Compare commits

..

7 commits

Author SHA1 Message Date
2d02179d2e fix my fix for analytics logic 2024-01-19 20:14:26 -06:00
cdba5eace2 kudos = 👏 2024-01-19 20:09:04 -06:00
5991a169a4 fix analytics logic 2024-01-19 20:06:30 -06:00
5a790710f0 don't show kudos when analytics disabled 2024-01-19 19:59:11 -06:00
50d48780be remove cabin 2024-01-19 17:26:27 -06:00
5639ff45cf add kudos 2024-01-19 17:14:18 -06:00
659b6dfaa4 add tinylytics 2024-01-19 16:13:12 -06:00
4 changed files with 31 additions and 6 deletions

View file

@ -18,7 +18,7 @@ giscusInputPosition = "bottom"
giscusLang = "en"
giscusLoading = "lazy"
giscusMapping = "og:title"
giscusReactions = "1"
giscusReactions = "0"
giscusRepo = "jbowdre/site-comments"
giscusRepoId = "R_kgDOKKEGDw"
giscusStrict = "0"
@ -183,8 +183,8 @@ title = "torchlight"
url = "https://torchlight.dev"
[[powerLinks]]
title = "cabin"
url = "https://withcabin.com/privacy/runtimeterror.dev"
title = "tinylytics"
url = "https://tinylytics.app/home"
[[verifyLinks]]
title = "omg.lol"

View file

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

View file

@ -34,9 +34,9 @@
<link rel="stylesheet" href="{{ "css/risotto.css" | absURL }}">
<link rel="stylesheet" href="{{ "css/custom.css" | absURL }}">
{{ if .Site.Params.analytics }}
<!-- cabin analytics -->
<script async defer src="https://scripts.withcabin.com/hello.js"></script>
{{ if eq .Site.Params.analytics true }}
<!-- tinylytics -->
<script src="https://tinylytics.app/embed/z4bwvaCBkF39NcDDLsRu.js?kudos=👏" defer></script>
{{ end }}
<!-- syntax highlighting -->

View file

@ -282,3 +282,24 @@ blockquote {
border-left: 0.25rem solid var(--logo);
padding-left: 0.25rem;
}
/* tinylytics kudos styling*/
.post_kudos {
display: flex;
}
button.tinylytics_kudos {
border: 0;
background-color: transparent;
cursor: pointer;
display: flex;
color: var(--off-fg);
font-size: 1.2rem;
padding: 0;
transition: all .2s ease-in-out;
}
button.tinylytics_kudos:hover {
transform: scale(1.1);
text-shadow: var(--off-fg) 0 0 1px;
}