footer.swig 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {%- if theme.footer.beian.enable %}
  2. <div class="beian">
  3. {{- next_url('https://beian.miit.gov.cn', theme.footer.beian.icp + ' ') }}
  4. {%- if theme.footer.beian.gongan_icon_url %}
  5. <img src="{{ url_for(theme.footer.beian.gongan_icon_url) }}" style="display: inline-block;">
  6. {%- endif %}
  7. {%- if theme.footer.beian.gongan_id and theme.footer.beian.gongan_num %}
  8. {{- next_url('http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' + theme.footer.beian.gongan_id, theme.footer.beian.gongan_num + ' ') }}
  9. {%- endif %}
  10. </div>
  11. {%- endif %}
  12. <div class="copyright">
  13. {% set copyright_year = date(null, 'YYYY') %}
  14. &copy; {% if theme.footer.since and theme.footer.since != copyright_year %}{{ theme.footer.since }} – {% endif %}
  15. <span itemprop="copyrightYear">{{ copyright_year }}</span>
  16. <span class="with-love">
  17. <i class="{{ theme.footer.icon.name }}"></i>
  18. </span>
  19. <span class="author" itemprop="copyrightHolder">{{ theme.footer.copyright or author }}</span>
  20. {%- if config.symbols_count_time.total_symbols %}
  21. <span class="post-meta-divider">|</span>
  22. <span class="post-meta-item-icon">
  23. <i class="fa fa-chart-area"></i>
  24. </span>
  25. {%- if theme.symbols_count_time.item_text_total %}
  26. <span class="post-meta-item-text">{{ __('symbols_count_time.count_total') + __('symbol.colon') }}</span>
  27. {%- endif %}
  28. <span title="{{ __('symbols_count_time.count_total') }}">{{ symbolsCountTotal(site) }}</span>
  29. {%- endif %}
  30. {%- if config.symbols_count_time.total_time %}
  31. <span class="post-meta-divider">|</span>
  32. <span class="post-meta-item-icon">
  33. <i class="fa fa-coffee"></i>
  34. </span>
  35. {%- if theme.symbols_count_time.item_text_total %}
  36. <span class="post-meta-item-text">{{ __('symbols_count_time.time_total') }} &asymp;</span>
  37. {%- endif %}
  38. <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>
  39. {%- endif %}
  40. </div>
  41. {%- if theme.footer.powered %}
  42. <div class="powered-by">
  43. {%- set next_site = 'https://theme-next.org' %}
  44. {%- if theme.scheme !== 'Gemini' %}
  45. {%- set next_site = 'https://' + theme.scheme | lower + '.theme-next.org' %}
  46. {%- endif %}
  47. {{- __('footer.powered', next_url('https://hexo.io', 'Hexo', {class: 'theme-link'}) + ' & ' + next_url(next_site, 'NexT.' + theme.scheme, {class: 'theme-link'})) }}
  48. </div>
  49. {%- endif %}
  50. {%- if theme.add_this_id %}
  51. <div class="addthis_inline_share_toolbox">
  52. <script src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ theme.add_this_id }}" async="async"></script>
  53. </div>
  54. {%- endif %}
  55. {{- next_inject('footer') }}