mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Add beian footer
This commit is contained in:
parent
2f9306502d
commit
6a4c34ca20
@ -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;
|
||||||
|
@ -13,6 +13,7 @@ params:
|
|||||||
footer:
|
footer:
|
||||||
since:
|
since:
|
||||||
customText:
|
customText:
|
||||||
|
beian:
|
||||||
|
|
||||||
dateFormat:
|
dateFormat:
|
||||||
published: Jan 02, 2006
|
published: Jan 02, 2006
|
||||||
|
@ -56,6 +56,7 @@ params:
|
|||||||
footer:
|
footer:
|
||||||
since: 2020
|
since: 2020
|
||||||
customText:
|
customText:
|
||||||
|
beian:
|
||||||
|
|
||||||
dateFormat:
|
dateFormat:
|
||||||
published: Jan 02, 2006
|
published: Jan 02, 2006
|
||||||
|
@ -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/>
|
||||||
|
Loading…
Reference in New Issue
Block a user