From 7af399e98f07d612aa26b5bfbe95cab41f5a7ffc Mon Sep 17 00:00:00 2001 From: XPoet Date: Wed, 28 Oct 2020 19:33:43 +0800 Subject: [PATCH] refactor: adjust theme && theme user base info --- _config.yml | 11 +++++------ layout/_partial/footer.ejs | 5 ++--- layout/_partial/head.ejs | 2 +- layout/_partial/header.ejs | 2 +- scripts/helpers/export-config.js | 1 - source/js/utils.js | 17 ++++++++++++++++- 6 files changed, 25 insertions(+), 13 deletions(-) diff --git a/_config.yml b/_config.yml index 8c77e05..5789664 100644 --- a/_config.yml +++ b/_config.yml @@ -1,12 +1,11 @@ # --------------------------------------------------------------------------------------- -# Theme basic info (please don't change) +# Your basic info # --------------------------------------------------------------------------------------- -theme_info: - name: ILS - version: 2.1.1 +base_info: + title: ILS author: XPoet - repository: https://github.com/XPoet/hexo-theme-ils - + email: i@xpoet.cn + url: https://ils.xpoet.cn/ # --------------------------------------------------------------------------------------- # Theme style settings diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index ee6041c..4592d0e 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -1,7 +1,7 @@ diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 2b57725..d47381f 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -22,7 +22,7 @@ <% if (title){ %><%= title %> | <% } %> - <%= config.title %> + <%= theme.base_info.title || config.title || 'ILS' %> <% if (theme.style.favicon){ %> diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index 3e6c683..c17f162 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -3,7 +3,7 @@
- <%= config.title %> + <%= theme.base_info.title || config.title || 'ILS' %>