tag:OSS图片标签加入title属性。
This commit is contained in:
parent
2a6fa60587
commit
da4956d06d
|
@ -11,6 +11,7 @@ hexo.extend.tag.register('oss_image', function(args) {
|
|||
attrs.push(`src="${imageSrc}"`);
|
||||
|
||||
let altMessage = args.shift() || '';
|
||||
attrs.push(`title="${altMessage}"`);
|
||||
attrs.push(`alt="${altMessage}"`);
|
||||
|
||||
let width = args.shift() || 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user