From 9d9fb1660e0d7c31123b39f8cdf50109b12d4edd Mon Sep 17 00:00:00 2001 From: TheEnd <1302344380@qq.com> Date: Tue, 15 Mar 2022 21:17:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=BB=E9=A2=98=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- themes/next/_config.yml | 15 ++++++----- themes/next/layout/_partials/footer.swig | 33 +++++++++++++++++------- 3 files changed, 33 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 856f524..5532661 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "clean": "hexo clean", "deploy": "hexo deploy", "release": "hexo clean && hexo generate && hexo deploy", - "server": "hexo server" + "server": "hexo clean && hexo generate && hexo server" }, "hexo": { "version": "6.1.0" diff --git a/themes/next/_config.yml b/themes/next/_config.yml index ce1840b..cec28d8 100644 --- a/themes/next/_config.yml +++ b/themes/next/_config.yml @@ -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: - enable: false - icp: + enable: true + icp: 豫ICP备19045614号-2 # The digit in the num of gongan beian. gongan_id: # The full num of gongan beian. gongan_num: # 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. # See: https://creativecommons.org/share-your-work/licensing-types-examples @@ -128,7 +128,7 @@ menu: # Enable / Disable menu icons / item badges. menu_settings: icons: true - badges: false + badges: true # --------------------------------------------------------------- @@ -138,8 +138,8 @@ menu_settings: sidebar: # Sidebar Position. - position: left - #position: right +# position: left + position: right # Manual define the sidebar width. If commented, will be default for: # Muse | Mist: 320 @@ -250,9 +250,10 @@ post_meta: # Post wordcount display settings # Dependencies: https://github.com/theme-next/hexo-symbols-count-time symbols_count_time: + total_symbols: true separated_meta: 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 diff --git a/themes/next/layout/_partials/footer.swig b/themes/next/layout/_partials/footer.swig index c71bc5a..02292fd 100644 --- a/themes/next/layout/_partials/footer.swig +++ b/themes/next/layout/_partials/footer.swig @@ -1,5 +1,5 @@ {%- if theme.footer.beian.enable %} -