From 8c26bc57d5b9c9d5a6155eba222bc7fd47dd74f8 Mon Sep 17 00:00:00 2001 From: mayx Date: Mon, 7 Apr 2025 08:21:34 +0000 Subject: Update 6 files - /_layouts/post.html - /_layouts/default.html - /_posts/2024-07-03-ai-summary.md - /_posts/2022-02-14-move.md - /_posts/2022-01-04-banned.md - /proxylist.md--- _layouts/default.html | 59 +++++++++++++++++++-------------------------------- _layouts/post.html | 2 +- 2 files changed, 23 insertions(+), 38 deletions(-) (limited to '_layouts') diff --git a/_layouts/default.html b/_layouts/default.html index a3c59c7..90bb0da 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -26,46 +26,31 @@ gtag('js', new Date()); gtag('config', '{{ site.google_analytics }}'); - var lastUpdated = new Date("{{ site.time | date: "%FT%T%z" }}"); - var BlogAPI = "https://summary.mayx.eu.org"; - function getSearchJSON(callback) { - var searchData = JSON.parse(localStorage.getItem("blog_" + lastUpdated.valueOf())); - if (!searchData) { - for (var i = 0; i < localStorage.length; i++) { - var key = localStorage.key(i); - if (key.startsWith('blog_')) { - localStorage.removeItem(key); - } + + {% endif %} + - {% endif %} @@ -145,7 +130,7 @@ diff --git a/_layouts/post.html b/_layouts/post.html index 43ecde8..04a2a4c 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -75,7 +75,7 @@ layout: default {% include toc.html html=content sanitize=true h_max=3 %} -{% if post.layout == "encrypt" %} {{content}} {% else %}
{% include anchor_headings.html html=content beforeHeading=true anchorBody="" %}
{% endif %} +{% if post.layout == "encrypt" %} {{content}} {% else %}
{% include anchor_headings.html html=content beforeHeading=true anchorBody="" %}
{% endif %} {% if page.tags %} tags: {% for tag in page.tags %}{{ tag }}{% unless forloop.last %} - {% endunless %}{% endfor %} 查看原始文件 -- cgit 1.4.1-2-gfad0