From 6a4c34ca20cb2bd2ac8b2b36ddf1bab574f7ad19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Unk=E2=84=96w?=
<51278893+Unknow-404@users.noreply.github.com>
Date: Sun, 3 Mar 2024 17:07:24 +0800
Subject: [PATCH] Add beian footer
---
assets/scss/partials/footer.scss | 10 ++++++++++
config.yaml | 1 +
exampleSite/config.yaml | 1 +
layouts/partials/footer/footer.html | 8 +++++++-
4 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/assets/scss/partials/footer.scss b/assets/scss/partials/footer.scss
index ccb7394..6ed26d8 100644
--- a/assets/scss/partials/footer.scss
+++ b/assets/scss/partials/footer.scss
@@ -18,6 +18,16 @@ footer.site-footer {
margin-bottom: 5px;
}
+ .beian {
+ color: var(--body-text-color);
+ font-weight: normal;
+ font-size: 1.2rem;
+
+ a {
+ color: var(--body-text-color);
+ }
+ }
+
.powerby {
color: var(--body-text-color);
font-weight: normal;
diff --git a/config.yaml b/config.yaml
index ece0ecb..c24b445 100644
--- a/config.yaml
+++ b/config.yaml
@@ -13,6 +13,7 @@ params:
footer:
since:
customText:
+ beian:
dateFormat:
published: Jan 02, 2006
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index d8c02fe..cd41241 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -56,6 +56,7 @@ params:
footer:
since: 2020
customText:
+ beian:
dateFormat:
published: Jan 02, 2006
diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html
index 4b9d26e..d7a3cb0 100644
--- a/layouts/partials/footer/footer.html
+++ b/layouts/partials/footer/footer.html
@@ -7,7 +7,13 @@
{{ end }}
{{ now.Format "2006" }} {{ default .Site.Title .Site.Copyright }}
-
+
+
+ {{ with .Site.Params.footer.beian }}
+ {{ print `` . `` | safeHTML }}
+ {{ end }}
+
+
{{ with .Site.Params.footer.customText }}
{{ . | safeHTML }}