diff --git a/includes/specs/meta.spec.js b/includes/specs/meta.spec.js index 28d96dc..f5f2de3 100644 --- a/includes/specs/meta.spec.js +++ b/includes/specs/meta.spec.js @@ -4,7 +4,7 @@ module.exports = { favicon: { [type]: 'string', [doc]: 'Path or URL to the website\'s icon', - [defaultValue]: null + [defaultValue]: '/images/favicon.svg', }, rss: { [type]: 'string', diff --git a/includes/specs/plugins.spec.js b/includes/specs/plugins.spec.js index c8f39e8..1196770 100644 --- a/includes/specs/plugins.spec.js +++ b/includes/specs/plugins.spec.js @@ -5,22 +5,27 @@ module.exports = { [doc]: 'Other plugin settings', gallery: { [type]: 'boolean', - [doc]: 'Enable the lightGallery and Justified Gallery plugins', + [doc]: 'Enable the lightGallery and Justified Gallery plugins (http://ppoffice.github.io/hexo-theme-icarus/2016/07/08/plugin/Gallery/)', [defaultValue]: true }, 'outdated-browser': { [type]: 'boolean', - [doc]: 'Enable the Outdated Browser plugin', + [doc]: 'Enable the Outdated Browser plugin (http://outdatedbrowser.com/)', [defaultValue]: true }, animejs: { [type]: 'boolean', - [doc]: 'Enable page animations', + [doc]: 'Enable page animations (http://animejs.com/)', [defaultValue]: true }, mathjax: { [type]: 'boolean', - [doc]: 'Enable the MathJax plugin', + [doc]: 'Enable the MathJax plugin (http://ppoffice.github.io/hexo-theme-icarus/2018/01/01/plugin/MathJax/)', + [defaultValue]: true + }, + 'back-to-top': { + [type]: 'boolean', + [doc]: 'Show the back to top button on mobile devices', [defaultValue]: true }, 'google-analytics': { diff --git a/includes/specs/widgets.spec.js b/includes/specs/widgets.spec.js index f76479e..8cda95d 100644 --- a/includes/specs/widgets.spec.js +++ b/includes/specs/widgets.spec.js @@ -42,7 +42,7 @@ const DEFAULT_WIDGETS = [ position: 'left', links: { Hexo: 'https://hexo.io', - Github: 'https://github.com/ppoffice' + PPOffice: 'https://github.com/ppoffice' } }, { @@ -121,7 +121,7 @@ const LinksSpec = { module.exports = { [type]: 'array', - [doc]: 'Sidebar widget settings', + [doc]: 'Sidebar widget settings (http://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/)', [defaultValue]: DEFAULT_WIDGETS, '*': { [type]: 'object', diff --git a/includes/tasks/check_config.js b/includes/tasks/check_config.js index c747b1a..1632ac1 100644 --- a/includes/tasks/check_config.js +++ b/includes/tasks/check_config.js @@ -11,7 +11,7 @@ const ConfigGenerator = require('../common/ConfigGenerator'); const CONFIG_PATH = path.join(__dirname, '../..', '_config.yml'); -logger.info('Checking if the configuration file exists...'); +logger.info('Validating the configuration file'); if (!fs.existsSync(CONFIG_PATH)) { const relativePath = path.relative(process.cwd(), CONFIG_PATH); @@ -21,7 +21,6 @@ if (!fs.existsSync(CONFIG_PATH)) { process.exit(0); } -logger.info('Validating the configuration file...'); const validator = new ConfigValidator(rootSpec); const config = yaml.safeLoad(fs.readFileSync(CONFIG_PATH)); try { diff --git a/includes/tasks/welcome.js b/includes/tasks/welcome.js index ad2d336..264f15e 100644 --- a/includes/tasks/welcome.js +++ b/includes/tasks/welcome.js @@ -1,5 +1,10 @@ const logger = require('hexo-log')(); logger.info(`======================================= - Icarus V2 + ██╗ ██████╗ █████╗ ██████╗ ██╗ ██╗███████╗ + ██║██╔════╝██╔══██╗██╔══██╗██║ ██║██╔════╝ + ██║██║ ███████║██████╔╝██║ ██║███████╗ + ██║██║ ██╔══██║██╔══██╗██║ ██║╚════██║ + ██║╚██████╗██║ ██║██║ ██║╚██████╔╝███████║ + ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ =============================================`); \ No newline at end of file diff --git a/languages/en.yml b/languages/en.yml index f15825d..401bc45 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -25,6 +25,8 @@ article: read: 'read' about: 'About' words: 'words' +plugin: + backtotop: 'Back to Top' search: search: 'Search' hint: 'Type something...' diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index 079c78d..b3fadda 100644 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -25,6 +25,8 @@ article: read: '读完' about: '大约' words: '个字' +plugin: + backtotop: '回到顶端' search: search: '搜索' hint: '想要查找什么...' diff --git a/layout/common/navbar.ejs b/layout/common/navbar.ejs index 935dc1a..27b6b0e 100644 --- a/layout/common/navbar.ejs +++ b/layout/common/navbar.ejs @@ -1,6 +1,6 @@