2025-2-26-fixed
This commit is contained in:
61
themes/next/layout/_partials/footer.swig
Normal file
61
themes/next/layout/_partials/footer.swig
Normal file
@@ -0,0 +1,61 @@
|
||||
{%- if theme.footer.beian.enable %}
|
||||
<div class="beian">
|
||||
{{- next_url('https://beian.miit.gov.cn', theme.footer.beian.icp + ' ') }}
|
||||
{%- if theme.footer.beian.gongan_icon_url %}
|
||||
<img src="{{ url_for(theme.footer.beian.gongan_icon_url) }}" style="display: inline-block;">
|
||||
{%- endif %}
|
||||
{%- if theme.footer.beian.gongan_id and theme.footer.beian.gongan_num %}
|
||||
{{- next_url('http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' + theme.footer.beian.gongan_id, theme.footer.beian.gongan_num + ' ') }}
|
||||
{%- endif %}
|
||||
</div>
|
||||
{%- endif %}
|
||||
|
||||
<div class="copyright">
|
||||
{% set copyright_year = date(null, 'YYYY') %}
|
||||
© {% 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>
|
||||
|
||||
{%- if config.symbols_count_time.total_symbols %}
|
||||
<span class="post-meta-divider">|</span>
|
||||
<span class="post-meta-item-icon">
|
||||
<i class="fa fa-chart-area"></i>
|
||||
</span>
|
||||
{%- if theme.symbols_count_time.item_text_total %}
|
||||
<span class="post-meta-item-text">{{ __('symbols_count_time.count_total') + __('symbol.colon') }}</span>
|
||||
{%- endif %}
|
||||
<span title="{{ __('symbols_count_time.count_total') }}">{{ symbolsCountTotal(site) }}</span>
|
||||
{%- endif %}
|
||||
|
||||
{%- if config.symbols_count_time.total_time %}
|
||||
<span class="post-meta-divider">|</span>
|
||||
<span class="post-meta-item-icon">
|
||||
<i class="fa fa-coffee"></i>
|
||||
</span>
|
||||
{%- if theme.symbols_count_time.item_text_total %}
|
||||
<span class="post-meta-item-text">{{ __('symbols_count_time.time_total') }} ≈</span>
|
||||
{%- endif %}
|
||||
<span title="{{ __('symbols_count_time.time_total') }}">{{ symbolsTimeTotal(site, config.symbols_count_time.awl, config.symbols_count_time.wpm, __('symbols_count_time.time_minutes')) }}</span>
|
||||
{%- endif %}
|
||||
</div>
|
||||
|
||||
{%- if theme.footer.powered %}
|
||||
<div class="powered-by">
|
||||
{%- set next_site = 'https://theme-next.org' %}
|
||||
{%- if theme.scheme !== 'Gemini' %}
|
||||
{%- set next_site = 'https://' + theme.scheme | lower + '.theme-next.org' %}
|
||||
{%- endif %}
|
||||
{{- __('footer.powered', next_url('https://hexo.io', 'Hexo', {class: 'theme-link'}) + ' & ' + next_url(next_site, 'NexT.' + theme.scheme, {class: 'theme-link'})) }}
|
||||
</div>
|
||||
{%- endif %}
|
||||
|
||||
{%- if theme.add_this_id %}
|
||||
<div class="addthis_inline_share_toolbox">
|
||||
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ theme.add_this_id }}" async="async"></script>
|
||||
</div>
|
||||
{%- endif %}
|
||||
|
||||
{{- next_inject('footer') }}
|
||||
Reference in New Issue
Block a user