调整主题布局

This commit is contained in:
TheEnd 2022-03-15 21:17:01 +08:00
parent 0b6ed2efce
commit 9d9fb1660e
3 changed files with 33 additions and 17 deletions

View File

@ -7,7 +7,7 @@
"clean": "hexo clean", "clean": "hexo clean",
"deploy": "hexo deploy", "deploy": "hexo deploy",
"release": "hexo clean && hexo generate && hexo deploy", "release": "hexo clean && hexo generate && hexo deploy",
"server": "hexo server" "server": "hexo clean && hexo generate && hexo server"
}, },
"hexo": { "hexo": {
"version": "6.1.0" "version": "6.1.0"

View File

@ -71,14 +71,14 @@ footer:
# Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, http://www.beian.gov.cn # Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, http://www.beian.gov.cn
beian: beian:
enable: false enable: true
icp: icp: 豫ICP备19045614号-2
# The digit in the num of gongan beian. # The digit in the num of gongan beian.
gongan_id: gongan_id:
# The full num of gongan beian. # The full num of gongan beian.
gongan_num: gongan_num:
# The icon for gongan beian. See: http://www.beian.gov.cn/portal/download # The icon for gongan beian. See: http://www.beian.gov.cn/portal/download
gongan_icon_url: gongan_icon_url: http://www.beian.gov.cn/img/new/gongan.png
# Creative Commons 4.0 International License. # Creative Commons 4.0 International License.
# See: https://creativecommons.org/share-your-work/licensing-types-examples # See: https://creativecommons.org/share-your-work/licensing-types-examples
@ -128,7 +128,7 @@ menu:
# Enable / Disable menu icons / item badges. # Enable / Disable menu icons / item badges.
menu_settings: menu_settings:
icons: true icons: true
badges: false badges: true
# --------------------------------------------------------------- # ---------------------------------------------------------------
@ -138,8 +138,8 @@ menu_settings:
sidebar: sidebar:
# Sidebar Position. # Sidebar Position.
position: left # position: left
#position: right position: right
# Manual define the sidebar width. If commented, will be default for: # Manual define the sidebar width. If commented, will be default for:
# Muse | Mist: 320 # Muse | Mist: 320
@ -250,9 +250,10 @@ post_meta:
# Post wordcount display settings # Post wordcount display settings
# Dependencies: https://github.com/theme-next/hexo-symbols-count-time # Dependencies: https://github.com/theme-next/hexo-symbols-count-time
symbols_count_time: symbols_count_time:
total_symbols: true
separated_meta: true separated_meta: true
item_text_post: true item_text_post: true
item_text_total: false item_text_total: true
# Use icon instead of the symbol # to indicate the tag at the bottom of the post # Use icon instead of the symbol # to indicate the tag at the bottom of the post

View File

@ -1,5 +1,5 @@
{%- if theme.footer.beian.enable %} {%- if theme.footer.beian.enable %}
<div class="beian"> <div class="beian" style="text-align: center">
{{- next_url('https://beian.miit.gov.cn', theme.footer.beian.icp + ' ') }} {{- next_url('https://beian.miit.gov.cn', theme.footer.beian.icp + ' ') }}
{%- if theme.footer.beian.gongan_icon_url %} {%- if theme.footer.beian.gongan_icon_url %}
<img src="{{ url_for(theme.footer.beian.gongan_icon_url) }}" style="display: inline-block;"> <img src="{{ url_for(theme.footer.beian.gongan_icon_url) }}" style="display: inline-block;">
@ -7,12 +7,18 @@
{%- if theme.footer.beian.gongan_id and theme.footer.beian.gongan_num %} {%- 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 + ' ') }} {{- next_url('http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' + theme.footer.beian.gongan_id, theme.footer.beian.gongan_num + ' ') }}
{%- endif %} {%- endif %}
{% 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> </div>
{%- endif %} {%- endif %}
<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1280972500'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D1280972500%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script>
<div class="copyright"> <div class="copyright" style="display: none">
{% 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>
@ -20,7 +26,11 @@
<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>
<!-- &nbsp-->
<!-- <a href="http://www.beian.miit.gov.cn/">豫ICP备19045614号-2</a>-->
<!--
<span class="post-count">博客全站共{{ totalcount(site) }}字</span>
-->
{%- if config.symbols_count_time.total_symbols %} {%- if config.symbols_count_time.total_symbols %}
<span class="post-meta-divider">|</span> <span class="post-meta-divider">|</span>
@ -45,8 +55,17 @@
{%- endif %} {%- endif %}
</div> </div>
<div style="text-align: center">
<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1280972500'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D1280972500%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script>
<div class="theme-info">
<div class="powered-by"></div>
<span class="post-count">博客全站共{{ totalcount(site) }}字</span>
</div>
</div>
{%- if theme.footer.powered %} {%- if theme.footer.powered %}
<div class="powered-by"> <div class="powered-by" style="display: none">
{%- set next_site = 'https://theme-next.org' %} {%- set next_site = 'https://theme-next.org' %}
{%- if theme.scheme !== 'Gemini' %} {%- if theme.scheme !== 'Gemini' %}
{%- set next_site = 'https://' + theme.scheme | lower + '.theme-next.org' %} {%- set next_site = 'https://' + theme.scheme | lower + '.theme-next.org' %}
@ -63,7 +82,3 @@
{{- next_inject('footer') }} {{- next_inject('footer') }}
<div class="theme-info">
<div class="powered-by"></div>
<span class="post-count">博客全站共{{ totalcount(site) }}字</span>
</div>