summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authormayx <mayx@outlook.com>2026-05-21 10:11:01 +0000
committermayx <mayx@outlook.com>2026-05-21 10:11:01 +0000
commitd6274791a8f794d11e7e9acc58c3d45abe11a76c (patch)
treee416fe6f18460d6ba655b7f99e8db5b045cbd9cb /index.html
parent111dc1e25f43a1c783192d214a3697dee33bae82 (diff)
Update 2 files
- /assets/js/pjax.js - /index.html
Diffstat (limited to 'index.html')
-rw-r--r--index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.html b/index.html
index bd67f17..35e26be 100644
--- a/index.html
+++ b/index.html
@@ -12,7 +12,7 @@ image: https://screenshot.mayx.eu.org/
<!-- 遍历分页后的文章 -->
<table class="entry-content h-feed">
{% for post in paginator.posts %}
- <tr><td class="h-entry" onclick="go('{{ post.url }}')">
+ <tr><td class="h-entry" onclick="if (!event.target.closest('a.p-category')) go('{{ post.url }}')">
<h2 class="p-name"><a class="post-link u-url" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
<p>
<time class="date dt-published" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%-d %B %Y" }}</time>
@@ -24,7 +24,7 @@ image: https://screenshot.mayx.eu.org/
{% if post.tags %}
<span>
{% for tag in post.tags %}
- <a rel="category tag" class="p-category" href="/search.html?keyword={{ tag | uri_escape }}" onclick="event.stopPropagation()"><code style="white-space: nowrap">#{{ tag }}</code></a>
+ <a rel="category tag" class="p-category" href="/search.html?keyword={{ tag | uri_escape }}"><code style="white-space: nowrap">#{{ tag }}</code></a>
{% endfor %}
</span>
{% endif %}