Add anonymous upvote functionality

This commit is contained in:
Alex Selimov 2026-03-19 23:31:30 -04:00
parent d3ce523bfe
commit 87bc37e124
3 changed files with 91 additions and 0 deletions

View file

@ -18,6 +18,15 @@
<a class="blog-tags" href="{{ .RelPermalink }}">#{{ lower .LinkTitle }}</a>
{{ end }}
</p>
{{ if .Site.Params.upvotes }}
<div class="upvote">
<button id="upvote-btn" aria-label="Upvote">
<span id="upvote-chevron">&#8963;</span>
<span id="upvote-count"></span>
</button>
</div>
<script src="/upvote.js"></script>
{{ end }}
{{ if not .Params.hideReply }}
{{ with .Site.Params.author.email }}
<p>