diff --git a/_config.yml b/_config.yml index 6cc364d54..f287e7c58 100644 --- a/_config.yml +++ b/_config.yml @@ -1047,6 +1047,18 @@ links: avatar: "/img/favicon.png" } + # 失效/未激活的友链 + inactive: + enable: false + label: "异常友链 | 长时间不可访问站点" + inactiveItems: + - { + title: "404 Links", + intro: "404 Links", + link: "https://hexo.fluid-dev.com/404", + avatar: "/img/favicon.png" + } + # 当成员头像加载失败时,替换为指定图片 # When the member avatar fails to load, replace the specified image onerror_avatar: /img/avatar.png diff --git a/layout/links.ejs b/layout/links.ejs index aa5e4626a..fed344d7b 100644 --- a/layout/links.ejs +++ b/layout/links.ejs @@ -12,11 +12,12 @@ page.comment = theme.links.comments.type <% for(const each of theme.links.items || []) { %> <% if (!each.title || !each.link) continue %>
<%- theme.links.inactive.label %>
+ <% } %> + +