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 }}