This commit is contained in:
xaoxuu 2022-10-23 20:51:47 +08:00
parent 7b88148cd1
commit 2f92ac62df
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@
'use strict'; 'use strict';
const url_for = require('hexo-util').url_for.bind(hexo); const url_for = require('hexo-util').url_for.bind(hexo);
const i18n = require('hexo-i18n');
hexo.extend.tag.register('about', function(args, content) { hexo.extend.tag.register('about', function(args, content) {
args = hexo.args.map(args, ['avatar', 'height', 'border', 'back']); args = hexo.args.map(args, ['avatar', 'height', 'border', 'back']);

View File

@ -49,7 +49,7 @@ hexo.extend.tag.register('navbar', function(args) {
el += '</a>'; el += '</a>';
return el; return el;
} }
args.links.forEach((item, i) => { (args.links || []).forEach((item, i) => {
el += layoutItem(item, i); el += layoutItem(item, i);
}); });
el += '</nav></div>'; el += '</nav></div>';