diff options
author | vvveiii <cntrump@gmail.com> | 2020-06-30 16:47:44 +0300 |
---|---|---|
committer | vvveiii <cntrump@gmail.com> | 2020-06-30 16:47:44 +0300 |
commit | e544a0e4d5fbab0feb10050fe4ff5cee747edf8d (patch) | |
tree | 2f5c4e3cfa0830c51a28566df9b9a0b47ea4a542 /layouts | |
parent | 9a843043d742b3b8cabec1921d8e5e5e20702e8e (diff) |
Add beian settings for chinese.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/beian.html | 12 | ||||
-rw-r--r-- | layouts/partials/copyright.html | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/beian.html b/layouts/partials/beian.html new file mode 100644 index 0000000..ea55ccf --- /dev/null +++ b/layouts/partials/beian.html @@ -0,0 +1,12 @@ +{{- with site.Params.beian -}} +{{- if or .gongan .icp -}} +<p style="font-size: 12px;"> + {{- if .gongan -}} + <span><img style="vertical-align: middle; width: 18px; height: 18px;" src="http://www.beian.gov.cn/portal/download?token=606c3245-c97f-4e3e-8aa6-388d226c35d0">{{- .gongan -}} </span> + {{- end -}} + {{- if .icp -}} + <a href="http://www.beian.miit.gov.cn/" target="_blank">{{- .icp -}}</a> + {{- end -}} +</p> +{{- end -}} +{{- end -}}
\ No newline at end of file diff --git a/layouts/partials/copyright.html b/layouts/partials/copyright.html index c88d525..968744e 100644 --- a/layouts/partials/copyright.html +++ b/layouts/partials/copyright.html @@ -4,4 +4,5 @@ <p class="powerby"><span>Powered by </span><a href="https://gohugo.io" target="_blank">Hugo</a><span> and the </span><a href="https://themes.gohugo.io/hugo-notepadium/" target="_blank">Notepadium</a></p> + {{- partial "beian.html" . -}} </div>
\ No newline at end of file |