forked from retoor/devplacepy
feat: replace JS card-link data-href with CSS overlay and add DOMPurify sanitizer
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user