diff --git a/assets/css/gemini/style.css b/assets/css/gemini/style.css index bd20ba0..8fd9dfe 100644 --- a/assets/css/gemini/style.css +++ b/assets/css/gemini/style.css @@ -154,8 +154,22 @@ text-align: center; } +.beian img { + display: inline-block; + margin: 0 3px; + vertical-align: middle; +} -/* Font A */ +.with-love { +{{- with $P.footer.icon.color }} + color: {{ $P.footer.icon.color }}; +{{- end }} +{{- if $P.footer.icon.animated }} + animation: icon-animate 1.33s ease-in-out infinite; +{{- end }} +} + +/* Font Awesome */ .fa-spin { -webkit-animation: fa-spin .8s infinite linear; animation: fa-spin .8s infinite linear; diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index b91a925..c4e3fff 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -172,7 +172,31 @@ params: post: true # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org - # No setting is required here and can be done by multilanguage + # No required in here and can be done by multilanguage # language: deed.zh + + footer: + # Specify the year when the site was setup. If not defined, current year will be used. + since: 2016 + + # Icon between year and copyright info. + icon: + # Icon name in Font Awesome. See: https://fontawesome.com/icons + name: fa-solid fa-heart + # If you want to animate the icon, set it to true. + animated: true + # Change the color of icon, using Hex Code. + color: "#FF0000" + + # Powered by Hugo & NexT. + powered: true + + # Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, http://www.beian.gov.cn + beian: + enable: true + icp: 粤ICP备18047355号 + # The full num of gongan beian which use to query valid. + gonganNum: 11010102001808 + diff --git a/i18n/en-us.toml b/i18n/en-us.toml index 20bdbcf..a162721 100644 --- a/i18n/en-us.toml +++ b/i18n/en-us.toml @@ -43,4 +43,7 @@ [PostTag] other = "Tags" [PostReadMore] - other = "Read More" \ No newline at end of file + other = "Read More" + +[FooterPowerby] + other = "Power by %s" \ No newline at end of file diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml index a220c6a..63d0942 100644 --- a/i18n/zh-cn.toml +++ b/i18n/zh-cn.toml @@ -43,4 +43,7 @@ [PostTag] other = "标签" [PostReadMore] - other = "阅读全文" \ No newline at end of file + other = "阅读全文" + +[FooterPowerby] + other = "由 %s 强力驱动" \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a0c4510..dba76f4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -23,9 +23,7 @@ diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 52125aa..4f8fcb7 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,14 +1,40 @@ - -
- 由 Hexo & - NexT.Gemini - - 强力驱动 -
\ No newline at end of file +{{ $ft := .Site.Params.footer }} + \ No newline at end of file diff --git a/static/css/gemini/main.css b/static/css/gemini/main.css index 9af029a..54da0bb 100644 --- a/static/css/gemini/main.css +++ b/static/css/gemini/main.css @@ -1661,7 +1661,6 @@ pre code { width: 100%; } .with-love { - color: #f00; display: inline-block; margin: 0 5px; } diff --git a/static/imgs/gongan.png b/static/imgs/gongan.png new file mode 100644 index 0000000..1328a00 Binary files /dev/null and b/static/imgs/gongan.png differ