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"
# 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

View File

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