From 15933757ca5d933f986ed19256abf2c43c639a0e Mon Sep 17 00:00:00 2001 From: elkan1788 Date: Sun, 18 Feb 2024 17:14:03 +0800 Subject: [PATCH] :building_construction: Add friend's link flag. Sometimes the web URL link were not availabed forever, so need check it when build the statics files. --- exampleSite/data/flinks.yaml | 10 +++++++++- layouts/flinks/single.html | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/exampleSite/data/flinks.yaml b/exampleSite/data/flinks.yaml index 78d1b96..3b06c28 100644 --- a/exampleSite/data/flinks.yaml +++ b/exampleSite/data/flinks.yaml @@ -8,16 +8,22 @@ desc: 世界上最快的网站建设框架! avatar: https://gohugo.io/favicon-32x32.png link: https://gohugo.io + timeout: 2 + visible: true - name: Hugo-NexT desc: Hugo NexT 官方预览网站。 avatar: https://hugo-next.eu.org/imgs/hugo_next_avatar.png link: https://hugo-next.eu.org + timeout: 2 + visible: true - name: 凡梦星尘空间站 desc: 再平凡的人也有属于他的梦想! avatar: https://lisenhui.cn/imgs/avatar.png link: https://lisenhui.cn + timeout: 2 + visible: true - FLinksTitle: Hugo NexT 粉丝群体 @@ -26,4 +32,6 @@ - name: 阿哈吉 desc: 全网首个 Hugo NexT 忠实粉丝用户 avatar: https://a.happy2008.top/imgs/stayhome-small.png - link: https://a.happy2008.top/ \ No newline at end of file + link: https://a.happy2008.top/ + timeout: 2 + visible: true \ No newline at end of file diff --git a/layouts/flinks/single.html b/layouts/flinks/single.html index 0cb7330..ae897ea 100644 --- a/layouts/flinks/single.html +++ b/layouts/flinks/single.html @@ -13,6 +13,7 @@ {{ end }}