diff options
author | vvveiii <cntrump@gmail.com> | 2020-07-14 12:05:54 +0300 |
---|---|---|
committer | vvveiii <cntrump@gmail.com> | 2020-07-14 12:05:54 +0300 |
commit | f6848b12265a164de8b30ed0f6bbf5f0e8c52aa3 (patch) | |
tree | b7c114c542fefc329e0db34d707acde69a245dfb | |
parent | cf907125b3d661279f207b76923041c17e72c8f2 (diff) |
build-in gongan beian logo.png
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | layouts/partials/beian.html | 6 | ||||
-rw-r--r-- | static/assets/img/gonganlogo.png | bin | 0 -> 19256 bytes |
3 files changed, 7 insertions, 4 deletions
@@ -108,8 +108,9 @@ url = "https://gohugo.io/" # for chinese [params.beian] - icp = "" - gongan = "" + icp = "" # example: 粤ICP备20056596号-1 + gongan = "" # example: 粤公网安备 44030502005645号 + code = "" # example: 44030502005645 ``` ### Logo and Slogan diff --git a/layouts/partials/beian.html b/layouts/partials/beian.html index ea55ccf..aca7a3a 100644 --- a/layouts/partials/beian.html +++ b/layouts/partials/beian.html @@ -2,10 +2,12 @@ {{- 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> + <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode={{- .code -}}" target="_blank" rel="noopener noreferrer"><img style="vertical-align: text-bottom; width: 15px; height: 15px;" src={{- "/assets/img/gonganlogo.png" | relURL -}}>{{- .gongan -}}</a> + {{- end -}} + {{- if .icp -}} - <a href="http://www.beian.miit.gov.cn/" target="_blank">{{- .icp -}}</a> + <a href="http://www.beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">{{- .icp -}}</a> {{- end -}} </p> {{- end -}} diff --git a/static/assets/img/gonganlogo.png b/static/assets/img/gonganlogo.png Binary files differnew file mode 100644 index 0000000..9f76394 --- /dev/null +++ b/static/assets/img/gonganlogo.png |