From 74a640a048476ae862b6fbb674f5b1511a4333b0 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sat, 15 Jul 2023 00:15:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8B=E8=81=94=E6=A8=A1=E6=9D=BF=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 9 ++ templates/fcircle.html | 4 +- templates/links.html | 144 +----------------------- templates/macro/content-links.html | 151 ++++++++++++++++++++++++++ templates/modules/layouts/layout.html | 3 +- templates/page_links.html | 146 +------------------------ 6 files changed, 167 insertions(+), 290 deletions(-) create mode 100644 templates/macro/content-links.html diff --git a/settings.yaml b/settings.yaml index abead65b..d7408816 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1080,6 +1080,15 @@ spec: value: "https://moments.0206.ink/randomfriend" label: 随机访问地址 help: 注意格式 (你的鱼塘token地址 + randomfriend) + - $formkit: url + name: fcircleUrl + value: "/fcircle" + label: 鱼塘链接 + - $formkit: url + name: linksUrl + value: "/links" + label: 友链链接 + - group: fcircle label: 友链鱼塘 diff --git a/templates/fcircle.html b/templates/fcircle.html index f32b46b2..08ed9e99 100644 --- a/templates/fcircle.html +++ b/templates/fcircle.html @@ -36,7 +36,9 @@ href="javascript:fetchRandomPost();"> -
全部友链
+
+ 全部友链 +
- - - -
- - - -

- - [[${group.spec.displayName}]] ([[${group.links.size}]]) -

- - - - - -
-
- [[${link.spec.label}]] - - - - - -
- -
-
- - -
-
-
- -
- - - - - - -
- -
+
diff --git a/templates/macro/content-links.html b/templates/macro/content-links.html new file mode 100644 index 00000000..ee34bb4d --- /dev/null +++ b/templates/macro/content-links.html @@ -0,0 +1,151 @@ + + + + + + + +
+
+

🎣 钓鱼

+ + + +
+ +
+
+ + +
+ +
+ + + +

+ + [[${group.spec.displayName}]] ([[${group.links.size}]]) +

+ + + + + +
+
+ [[${link.spec.label}]] + + + + + +
+ +
+
+ + +
+
+
+ +
+ + + + + + +
+ + + + +
+ +
+
\ No newline at end of file diff --git a/templates/modules/layouts/layout.html b/templates/modules/layouts/layout.html index 95d2af45..a1c52c1a 100644 --- a/templates/modules/layouts/layout.html +++ b/templates/modules/layouts/layout.html @@ -211,6 +211,7 @@ // 页脚友链 addFriendLinksInFooter: function () { + var linksUrl = '[[${theme.config.link.linksUrl}]]' var fetchUrl = [[${theme.config.footer.footer_group.fetchUrl}]] fetch(fetchUrl) .then(res => res.json()) @@ -222,7 +223,7 @@ var item = randomFriendLinks[i] htmlText += `${item.name}`; } - htmlText += `更多` + htmlText += `更多` document.getElementById("friend-links-in-footer").innerHTML = htmlText; }) } diff --git a/templates/page_links.html b/templates/page_links.html index c5531b87..2663d758 100644 --- a/templates/page_links.html +++ b/templates/page_links.html @@ -11,153 +11,9 @@
- - - -
-
-

🎣 钓鱼

-
- -
-
- - -
+ -
- - - -

- - [[${group.spec.displayName}]] ([[${group.links.size}]]) -

- - - - - -
-
- [[${link.spec.label}]] - - - - - -
- -
-
- - -
-
-
- -
- - - - - - -
- - - - -