Add beian footer

This commit is contained in:
Unk№w 2024-03-03 17:07:24 +08:00 committed by GitHub
parent 2f9306502d
commit 6a4c34ca20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 19 additions and 1 deletions

View File

@ -18,6 +18,16 @@ footer.site-footer {
margin-bottom: 5px; margin-bottom: 5px;
} }
.beian {
color: var(--body-text-color);
font-weight: normal;
font-size: 1.2rem;
a {
color: var(--body-text-color);
}
}
.powerby { .powerby {
color: var(--body-text-color); color: var(--body-text-color);
font-weight: normal; font-weight: normal;

View File

@ -13,6 +13,7 @@ params:
footer: footer:
since: since:
customText: customText:
beian:
dateFormat: dateFormat:
published: Jan 02, 2006 published: Jan 02, 2006

View File

@ -56,6 +56,7 @@ params:
footer: footer:
since: 2020 since: 2020
customText: customText:
beian:
dateFormat: dateFormat:
published: Jan 02, 2006 published: Jan 02, 2006

View File

@ -8,6 +8,12 @@
{{ now.Format "2006" }} {{ default .Site.Title .Site.Copyright }} {{ now.Format "2006" }} {{ default .Site.Title .Site.Copyright }}
</section> </section>
<section class="beian">
{{ with .Site.Params.footer.beian }}
{{ print `<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">` . `</a>` | safeHTML }}
{{ end }}
</section>
<section class="powerby"> <section class="powerby">
{{ with .Site.Params.footer.customText }} {{ with .Site.Params.footer.customText }}
{{ . | safeHTML }} <br/> {{ . | safeHTML }} <br/>