feat: replace JS card-link data-href with CSS overlay and add DOMPurify sanitizer

This commit is contained in:
2026-05-27 20:03:12 +00:00
parent f0c4feb167
commit a8466da5b2
19 changed files with 68 additions and 77 deletions
+4 -1
View File
@@ -49,7 +49,10 @@
<div class="gists-grid">
{% for item in gists %}
<div class="gist-card fade-in" data-href="/gists/{{ item.gist['slug'] or item.gist['uid'] }}">
<div class="gist-card fade-in card-link-host">
{% set _href = "/gists/" ~ (item.gist['slug'] or item.gist['uid']) %}
{% set _label = item.gist['title'] %}
{% include "_card_link.html" %}
<div class="gist-card-header">
<h3 class="gist-card-title">{{ item.gist['title'] }}</h3>
<form method="POST" action="/votes/gist/{{ item.gist['uid'] }}" class="inline-form" data-stop-propagation>