diff --git a/scripts/tags/about.js b/scripts/tags/about.js index 9dd2226..aff392a 100644 --- a/scripts/tags/about.js +++ b/scripts/tags/about.js @@ -17,9 +17,13 @@ hexo.extend.tag.register('about', function(args, content) { el += '
'; el += '
'; // avatar - if (args.avatar) { + var avatar_url = args.avatar; + if (args.avatar === undefined) { + avatar_url = hexo.config.avatar; + } + if (avatar_url) { el += '
' - el += ' 0) { el += ' height="' + args.height + '"/>'; } else {