From 5c7773fb59d59bdb57fc20789ad44a01dff5c73d Mon Sep 17 00:00:00 2001 From: mayx Date: Tue, 2 Jul 2024 08:09:28 +0000 Subject: [PATCH] Update 2 files - /_layouts/post.html - /js/main.js --- _layouts/post.html | 154 ++++++++++++++++++++++++++++----------------- js/main.js | 4 +- 2 files changed, 99 insertions(+), 59 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index baf7b57..12abedd 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,89 +2,129 @@ layout: default --- -{{ page.date | date: "%-d %B %Y" }} - 字数统计:{% if page.layout == "encrypt" %}God Knows {% else %}{{ page.content | strip_html | strip_newlines | remove: " " | size }} - 阅读大约需要{{ page.content | strip_html | strip_newlines | remove: " " | size | divided_by: 350 | plus: 1 }}分钟{% endif %} - Hits: Loading... - +{{ page.date | date: "%-d %B %Y" }} - 字数统计:{% if page.layout == "encrypt" %}God Knows {% else %}{{ page.content | strip_html | strip_newlines | remove: " " | size }} - 阅读大约需要{{ page.content | strip_html | strip_newlines | remove: "" | size | divided_by: 350 | plus: 1 }}分钟{% endif %} - Hits: Loading...

{{ page.title }}

by {{ page.author | default: site.author }}


+{% if page.layout != "encrypt" %} + +AI摘要 +

+ +
+ +{% endif %} {% include toc.html html=content sanitize=true h_max=3 %} {{content}} {% if page.tags %} - tags: {{ page.tags | join: " - " }} +tags: {{ page.tags | join: " - " }} {% endif %} + {% if page.next.url %} + + + 下一篇:{{ page.next.title }} + + + {% endif %} + - - + +
- + \ No newline at end of file diff --git a/js/main.js b/js/main.js index 35f216c..0377ea1 100644 --- a/js/main.js +++ b/js/main.js @@ -17,7 +17,7 @@ $(function(){ $("div.live_ico_box").fadeOut(); }); function showHitS(hits){ - $.get("https://summary.mayx.eu.org/counter?id="+hits.id,function(data){ + $.get("https://summary.mayx.eu.org/count_click?id="+hits.id,function(data){ hits.innerHTML=Number(data); }); } @@ -30,7 +30,7 @@ function showHitCount() { } function addCount() { var visitors=$(".visitors"); - $.get("https://summary.mayx.eu.org/counter_add?id="+visitors[0].id,function(data){ + $.get("https://summary.mayx.eu.org/count_click_add?id="+visitors[0].id,function(data){ visitors[0].innerHTML=Number(data); }); }