From ed72e3074b26886277c2b64956d3d7a0ddfb932f Mon Sep 17 00:00:00 2001 From: zwei <110226580+bestZwei@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:37:07 +0800 Subject: [PATCH 1/4] Update index.html --- layouts/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 080f86f..7e0b5f7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -13,7 +13,7 @@ - + @@ -385,4 +385,4 @@

{{ end }} - \ No newline at end of file + From c5bde143a0368e7decd1568fb186fbb5d7923d47 Mon Sep 17 00:00:00 2001 From: zwei <110226580+bestZwei@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:37:39 +0800 Subject: [PATCH 2/4] Update single.html --- layouts/_default/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e27d028..0540369 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -13,7 +13,7 @@ - + @@ -129,4 +129,4 @@

{{ .Title }}

- \ No newline at end of file + From 7146d9385330c67dd1da03970a74f5e88f638104 Mon Sep 17 00:00:00 2001 From: zwei <110226580+bestZwei@users.noreply.github.com> Date: Wed, 13 Nov 2024 00:57:48 +0800 Subject: [PATCH 3/4] Update single.html --- layouts/nav/single.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layouts/nav/single.html b/layouts/nav/single.html index 4835217..244c923 100644 --- a/layouts/nav/single.html +++ b/layouts/nav/single.html @@ -271,15 +271,16 @@

- + $(".geticon").each(function(){ var url = $(this).find('a').attr('href'); - var apiUrl="https://api.iowen.cn/favicon/"+url.replace(/^https?:\/\//, '').replace(/\/.*$/, '')+".png" + var domain = url.replace(/^https?:\/\//, '').replace(/\/.*$/, ''); + var apiUrl = "https://api.faviconkit.com/" + domain + "/128"; // 使用 FaviconKit API if ($(this).find('img').attr('data-src').length === 0) { $(this).find('img').attr('data-src', apiUrl); } }) - + $(document).on('click', '.has-sub', function(){ var _this = $(this) if(!$(this).hasClass('expanded')) { @@ -385,4 +386,4 @@

{{ end }} - \ No newline at end of file + From 70d15f9e5cf1316e2617e012b23347b1cf1724f1 Mon Sep 17 00:00:00 2001 From: zwei <110226580+bestZwei@users.noreply.github.com> Date: Wed, 13 Nov 2024 00:58:35 +0800 Subject: [PATCH 4/4] Update index.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 替换失效的GetIcon API --- layouts/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 7e0b5f7..94bb5b8 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -269,15 +269,16 @@

- + $(".geticon").each(function(){ var url = $(this).find('a').attr('href'); - var apiUrl="https://api.iowen.cn/favicon/"+url.replace(/^https?:\/\//, '').replace(/\/.*$/, '')+".png" + var domain = url.replace(/^https?:\/\//, '').replace(/\/.*$/, ''); + var apiUrl = "https://api.faviconkit.com/" + domain + "/128"; // 使用 FaviconKit API if ($(this).find('img').attr('data-src').length === 0) { $(this).find('img').attr('data-src', apiUrl); } }) - + $(document).on('click', '.has-sub', function(){ var _this = $(this)