Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cntrump/hugo-notepadium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvvveiii <cntrump@gmail.com>2020-07-14 12:05:54 +0300
committervvveiii <cntrump@gmail.com>2020-07-14 12:05:54 +0300
commitf6848b12265a164de8b30ed0f6bbf5f0e8c52aa3 (patch)
treeb7c114c542fefc329e0db34d707acde69a245dfb
parentcf907125b3d661279f207b76923041c17e72c8f2 (diff)
build-in gongan beian logo.png
-rw-r--r--README.md5
-rw-r--r--layouts/partials/beian.html6
-rw-r--r--static/assets/img/gonganlogo.pngbin0 -> 19256 bytes
3 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index 015a4ed..ae0316e 100644
--- a/README.md
+++ b/README.md
@@ -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 -}}&nbsp;&nbsp;&nbsp;&nbsp;</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>
+ &nbsp;&nbsp;&nbsp;&nbsp;
{{- 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
new file mode 100644
index 0000000..9f76394
--- /dev/null
+++ b/static/assets/img/gonganlogo.png
Binary files differ