summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-04-18 12:15:52 +0800
committereltrac <hi@eltr.ac>2026-04-18 12:15:52 +0800
commit939b37ed135d3fc7dbb1849ceebe398f86d233bb (patch)
treed4b6f8cdd73713d80ebfb4cc3882785840183a1e
parent9b15a6b91f4aba748189c12677dd0056565889d7 (diff)
fix(posts/like): missing page_slug value for noscript iine
also fix css
-rw-r--r--layouts/_partials/posts/like.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/_partials/posts/like.html b/layouts/_partials/posts/like.html
index 4bc96a3..a1874b3 100644
--- a/layouts/_partials/posts/like.html
+++ b/layouts/_partials/posts/like.html
@@ -1,6 +1,7 @@
<form action="https://vhiweeypifbwacashxjz.supabase.co/rest/v1/rpc/increment_hits?apikey=sb_publishable_EoB7MFJhCmb6PiAk-GPJ4w_PGhQ44Ru" method="post">
- <input type="hidden" name="page_slug" value="/your-page">
- <button type="submit" class="iine-button"
+ <input type="hidden" name="page_slug" value="{{ .RelPermalink }}">
+ <button type="submit"
+ class="iine-button bg-transparent font-mono"
aria-hidden="true" data-icon="🫀"
data-tooltip="{{ T "webmention.offerHeart" }}">
<noscript>❤️</noscript>