From e921ab1420fc284eff8e0da63c17ab9e76bdde0a Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 11 Jan 2022 15:19:33 +0800 Subject: [PATCH] :art: Perf: optimize footer code --- CHANGELOG.md | 1 + exampleSite/config.toml | 8 +-- layouts/partials/footer.html | 106 +++++++++++++++++++---------------- 3 files changed, 63 insertions(+), 52 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4da9e467..cae0f4f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - :sparkles: Feat: add public network security config (only in China) ([#15](https://github.com/Lruihao/FixIt/issues/15)) - :sparkles: Feat: add CustomJS option ([#24](https://github.com/Lruihao/FixIt/issues/24)) - :zap: Perf: optimize JS loading ([#25](https://github.com/Lruihao/FixIt/issues/25)) +- :art: Perf: optimize footer code - :recycle: Refactor: header title DOM and add subtitle option ([#26](https://github.com/Lruihao/FixIt/issues/26)) - :bug: Fix: add scroll-margin to headerlink - :bug: Fix: toc-auto display error ([#21](https://github.com/Lruihao/FixIt/issues/21)) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1df793f5..736dc751 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1028,7 +1028,7 @@ enableEmoji = true enablePost = false # Site creation time # 网站创立时间 - siteTime = '2018-05-28T20:01:01+08:00' + siteTime = '2019-02-03T19:30:34+08:00' # Site verification code for Google/Bing/Yandex/Pinterest/Baidu # 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu @@ -1153,9 +1153,9 @@ enableEmoji = true # Author config # 作者配置 [author] - name = "xxxx" - email = "" - link = "" + name = "Lruihao" + email = "1024@lruihao.cn" + link = "https://lruihao.cn" # Sitemap config # 网站地图配置 diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8af326c5..1a5b98f3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -17,65 +17,75 @@ {{- end -}} - + {{- end -}} - + + {{- end -}} - + {{- if .Site.Params.footer.gov | or .Site.Params.footer.icp -}} + + {{- end -}} {{- end -}}