Skip to content

Commit ff89ec0

Browse files
committed
底部增加ICP备案编号
1 parent b36046e commit ff89ec0

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

assets/css/compiled/main.css

+3
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,9 @@ video {
11411141
.pb-px {
11421142
padding-bottom: 1px;
11431143
}
1144+
.pl-2 {
1145+
padding-left: 0.5rem;
1146+
}
11441147
.pl-5 {
11451148
padding-left: 1.25rem;
11461149
}

hugo.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ params:
127127
enable: true
128128
displayCopyright: true
129129
displaySlogan: true
130+
displayICP: true
131+
displayGanbei: false
130132
displayPoweredBy: false
131133
width: normal
132134

i18n/zh-cn.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ backToTop: "返回顶部"
22
changeLanguage: "切换语言"
33
changeTheme: "切换主题"
44
copyright: "© 2023 SEC.CAFE 安全咖啡."
5+
icp: "粤ICP备2024258509号-1"
6+
gabei: "粤ICP备2024258509号-1"
57
slogan: "安全本应纯粹,规避内卷,用一杯咖啡回归安全的乐趣"
68
dark: "深色"
79
editThisPage: "在 GitHub 上编辑此页 →"

layouts/partials/footer.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
{{- $displayThemeToggle := site.Params.theme.displayToggle | default true -}}
33

44
{{- $copyright := (T "copyright") | default "© 2023 Hextra." -}}
5+
{{- $icp := (T "icp") | default "ICP备00000000号-1" -}}
6+
{{- $gabei := (T "gabei") | default "公安备00000000号-1" -}}
57
{{- $slogan := (T "slogan") | default "" -}}
68
{{- $poweredBy := (T "poweredBy") | default "Powered by Hextra" -}}
79

@@ -29,7 +31,13 @@
2931
class="{{ $footerWidth }} mx-auto flex justify-center py-12 pl-[max(env(safe-area-inset-left),1.5rem)] pr-[max(env(safe-area-inset-right),1.5rem)] text-gray-600 dark:text-gray-400 md:justify-start"
3032
>
3133
<div class="flex w-full items-center sm:items-start justify-between">
32-
{{- if .Site.Params.footer.displayCopyright }}<div class="text-xs">{{ $copyright | markdownify }}</div>{{ end }}
34+
<div>
35+
{{- if .Site.Params.footer.displayCopyright }}<div class="text-sm">{{ $copyright | markdownify }}</div>{{ end }}
36+
<div class="flex">
37+
{{- if .Site.Params.footer.displayICP }}<div class="text-xs text-gray-500"><a href="https://beian.miit.gov.cn/" traget="_blank">{{ $icp | markdownify }}</a></div>{{ end }}
38+
{{- if .Site.Params.footer.displayGanbei }}<div class="text-xs px-2 text-gray-500"><a href="https://beian.miit.gov.cn/" traget="_blank">{{ $gabei | markdownify }}</a></div>{{ end }}
39+
</div>
40+
</div>
3341
{{- if .Site.Params.footer.displaySlogan }}<div class="text-xs">{{ $slogan | markdownify }}</div>{{ end }}
3442
{{- if (.Site.Params.footer.displayPoweredBy | default true) }}<div class="font-semibold" style="float:right">{{ template "theme-credit" $poweredBy }}</div>{{ end }}
3543
</div>

0 commit comments

Comments
 (0)