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

View file

@ -16,6 +16,10 @@
<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 }}

View file

@ -34,9 +34,9 @@
<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 true }}
<!-- cabin analytics --> <!-- tinylytics -->
<script async defer src="https://scripts.withcabin.com/hello.js"></script> <script src="https://tinylytics.app/embed/z4bwvaCBkF39NcDDLsRu.js?kudos=👏" defer></script>
{{ end }} {{ end }}
<!-- syntax highlighting --> <!-- syntax highlighting -->

View file

@ -281,4 +281,25 @@ blockquote {
font-style: italic; font-style: italic;
border-left: 0.25rem solid var(--logo); border-left: 0.25rem solid var(--logo);
padding-left: 0.25rem; 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;
} }