From 72302c2e4dcfc2db1e7ed72156ed4274b585e737 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Thu, 29 Jun 2023 10:43:50 +0800 Subject: [PATCH] Allow disabling the copyright statement --- _config.yml | 3 ++- layout/_partials/footer.njk | 20 +++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/_config.yml b/_config.yml index 405765310..a14295cd8 100644 --- a/_config.yml +++ b/_config.yml @@ -215,6 +215,7 @@ footer: color: "#ff0000" # If not defined, `author` from Hexo `_config.yml` will be used. + # Set to `false` to disable the copyright statement. copyright: # Powered by Hexo & NexT @@ -874,7 +875,7 @@ local_search: # Firstly, you need to enable and configure the chat service. chat: enable: false - icon: fa fa-comment # Icon name in Font Awesome, set false to disable icon. + icon: fa fa-comment # Icon name in Font Awesome, set to `false` to disable icon. # Chatra is a functional, easy to use piece of chat software for websites. # For more information: https://chatra.com diff --git a/layout/_partials/footer.njk b/layout/_partials/footer.njk index 0e27c12a2..1d1c66191 100644 --- a/layout/_partials/footer.njk +++ b/layout/_partials/footer.njk @@ -10,15 +10,17 @@ {%- endif %} - +{%- if theme.footer.copyright !== false %} + +{%- endif %} {%- if config.symbols_count_time.total_symbols or config.symbols_count_time.total_time %}