From 7f51f59ae814052f4748877a53cea1f7ae5f0dca Mon Sep 17 00:00:00 2001 From: Xilong Yang Date: Mon, 29 May 2023 21:14:31 +0800 Subject: [PATCH 1/3] feat: add blog root path config --- _config.yml | 4 ++++ layout/_partial/footer.ejs | 2 +- layout/_partial/header.ejs | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index ef81d9737..fdd0bab88 100644 --- a/_config.yml +++ b/_config.yml @@ -16,6 +16,10 @@ base_info: # Your blog website author name author: Keep Team + # Your blog root path relative to your website + # The path is used by title and logo. + blog_root: /blog + # --------------------------------------------------------------------------------------- # Theme style settings # Docs: https://keep-docs.xpoet.cn/tutorial/configuration-guide/style.html diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 200b34849..0d5d01afd 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -18,7 +18,7 @@ const { site_uv: bsz_site_uv, site_pv: bsz_site_pv, enable: bsz_enable } = theme <%= date(new Date(), 'YYYY') %> <% if (bi_author || hexo_author) { %>   -  <%= bi_author || hexo_author %> +  <%= bi_author || hexo_author %> <% } %> <% if (bsz_enable === true) { %> diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index 564d4fe2d..fdb05c720 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -10,11 +10,11 @@ const { enable: local_search_enable } = theme.local_search
From 09507bfd56ba9a2ff85b1074e92743a30dd4c7e9 Mon Sep 17 00:00:00 2001 From: Xilong Yang Date: Mon, 29 May 2023 21:17:04 +0800 Subject: [PATCH 2/3] feat: add blog root path config --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index fdd0bab88..90d2acc90 100644 --- a/_config.yml +++ b/_config.yml @@ -17,7 +17,7 @@ base_info: author: Keep Team # Your blog root path relative to your website - # The path is used by title and logo. + # The path is used by several links such as title and logo. blog_root: /blog # --------------------------------------------------------------------------------------- From 72a969da2546753af8d348888f3bec00f158c093 Mon Sep 17 00:00:00 2001 From: Xilong Yang Date: Mon, 29 May 2023 21:28:51 +0800 Subject: [PATCH 3/3] feat: add blog root path config --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 90d2acc90..ceaccbc7f 100644 --- a/_config.yml +++ b/_config.yml @@ -18,7 +18,7 @@ base_info: # Your blog root path relative to your website # The path is used by several links such as title and logo. - blog_root: /blog + blog_root: / # --------------------------------------------------------------------------------------- # Theme style settings