diff --git a/scripts/tags/about.js b/scripts/tags/about.js index 9d1ee2b..352eac2 100644 --- a/scripts/tags/about.js +++ b/scripts/tags/about.js @@ -9,7 +9,6 @@ 'use strict'; const url_for = require('hexo-util').url_for.bind(hexo); -const i18n = require('hexo-i18n'); hexo.extend.tag.register('about', function(args, content) { args = hexo.args.map(args, ['avatar', 'height', 'border', 'back']); diff --git a/scripts/tags/navbar.js b/scripts/tags/navbar.js index 61ff2b2..99ce4f4 100644 --- a/scripts/tags/navbar.js +++ b/scripts/tags/navbar.js @@ -49,7 +49,7 @@ hexo.extend.tag.register('navbar', function(args) { el += ''; return el; } - args.links.forEach((item, i) => { + (args.links || []).forEach((item, i) => { el += layoutItem(item, i); }); el += '';