Allow disabling the copyright statement

This commit is contained in:
Mimi 2023-06-29 10:43:50 +08:00
parent 824885ed0a
commit 72302c2e4d
2 changed files with 13 additions and 10 deletions

View File

@ -215,6 +215,7 @@ footer:
color: "#ff0000" color: "#ff0000"
# If not defined, `author` from Hexo `_config.yml` will be used. # If not defined, `author` from Hexo `_config.yml` will be used.
# Set to `false` to disable the copyright statement.
copyright: copyright:
# Powered by Hexo & NexT # Powered by Hexo & NexT
@ -874,7 +875,7 @@ local_search:
# Firstly, you need to enable and configure the chat service. # Firstly, you need to enable and configure the chat service.
chat: chat:
enable: false 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. # Chatra is a functional, easy to use piece of chat software for websites.
# For more information: https://chatra.com # For more information: https://chatra.com

View File

@ -10,7 +10,8 @@
</div> </div>
{%- endif %} {%- endif %}
<div class="copyright"> {%- if theme.footer.copyright !== false %}
<div class="copyright">
{%- set copyright_year = date(null, 'YYYY') %} {%- set copyright_year = date(null, 'YYYY') %}
&copy; {% if theme.footer.since and theme.footer.since != copyright_year %}{{ theme.footer.since }} {% endif %} &copy; {% if theme.footer.since and theme.footer.since != copyright_year %}{{ theme.footer.since }} {% endif %}
<span itemprop="copyrightYear">{{ copyright_year }}</span> <span itemprop="copyrightYear">{{ copyright_year }}</span>
@ -18,7 +19,8 @@
<i class="{{ theme.footer.icon.name }}"></i> <i class="{{ theme.footer.icon.name }}"></i>
</span> </span>
<span class="author" itemprop="copyrightHolder">{{ theme.footer.copyright or author }}</span> <span class="author" itemprop="copyrightHolder">{{ theme.footer.copyright or author }}</span>
</div> </div>
{%- endif %}
{%- if config.symbols_count_time.total_symbols or config.symbols_count_time.total_time %} {%- if config.symbols_count_time.total_symbols or config.symbols_count_time.total_time %}
<div class="wordcount"> <div class="wordcount">