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 }} +