summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authormayx <mayx@outlook.com>2026-05-31 16:00:35 +0000
committermayx <mayx@outlook.com>2026-05-31 16:00:35 +0000
commit71d493c2a8126c04267526081663272d623598d3 (patch)
treea408250703a5410e19b9986ffb5c6fc722fbb0b2 /index.html
parent156f964333ea9ca4d00d98f3c831ef05fe0b8d46 (diff)
Update 4 files
- /_data/other_repo_list.csv - /_posts/2026-06-01-dedupe.md - /assets/js/pjax.js - /index.html
Diffstat (limited to 'index.html')
-rw-r--r--index.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/index.html b/index.html
index 35e26be..573c8ca 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="if (!event.target.closest('a.p-category')) go('{{ post.url }}')">
+ <tr><td class="h-entry" data-url="{{ 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>
@@ -77,4 +77,11 @@ image: https://screenshot.mayx.eu.org/
<small><a href="https://xn--sr8hvo.ws/previous">←</a>
An <a href="https://xn--sr8hvo.ws">IndieWeb Webring</a> 🕸💍
<a href="https://xn--sr8hvo.ws/next">→</a><br /><a href="https://icp.gov.moe/?keyword=20218888" target="_blank">萌ICP备 20218888号</a></small>
-<input name="live2dBGM" value="https://music.163.com/song/media/outer/url?id=523658881.mp3" type="hidden" /> \ No newline at end of file
+<input name="live2dBGM" value="https://music.163.com/song/media/outer/url?id=523658881.mp3" type="hidden" />
+<script>
+$(document).on('click', '.h-entry', function(e) {
+ if ($(e.target).closest('.p-category').length === 0) {
+ go($(this).attr('data-url'));
+ }
+});
+</script> \ No newline at end of file