From 4b8b14889e2b09b5ec371c20c999bd5c67036d09 Mon Sep 17 00:00:00 2001 From: Gordon Mo Date: Tue, 28 Oct 2025 16:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0ICP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/extended_footer.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/layouts/partials/extended_footer.html b/layouts/partials/extended_footer.html index 1ef9361..6b229af 100644 --- a/layouts/partials/extended_footer.html +++ b/layouts/partials/extended_footer.html @@ -2,3 +2,22 @@ To add an extended footer section, please create `layouts/partials/extended_footer.html` in your Hugo directory. --> +
+ {{ with site.Params.beian }} + {{/* 仅在存在 ICP 时显示 ICP 链接 */}} + {{ if .icp }} + + {{ .icp }} + + {{ end }} + + {{/* 仅当 police(公安备案文案)存在时才显示分隔符与公安备案链接 */}} + {{ if .police }} + {{ if .icp }}|{{ end }} + + {{ if .policeIcon }}公安备案图标{{ end }} + {{ .police }} + + {{ end }} + {{ end }} +