From c2cadf213022984352aa13b71f232c2c368cda24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 4 May 2021 21:21:13 +0800 Subject: [PATCH] =?UTF-8?q?tag:=E8=B0=83=E6=95=B4OSS=E5=9B=BE=E5=BA=8A?= =?UTF-8?q?=E8=BE=85=E5=8A=A9=E5=87=BD=E6=95=B0=E5=8F=82=E6=95=B0=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/tag/oss-image.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/tag/oss-image.js b/scripts/tag/oss-image.js index eb01161..3f4f1fb 100644 --- a/scripts/tag/oss-image.js +++ b/scripts/tag/oss-image.js @@ -14,17 +14,17 @@ hexo.extend.tag.register('oss_image', function(args) { let altMessage = args[2] || ''; attrs.push(`alt="${altMessage}"`); - let classes = args[3] || ''; + let classes = args[5] || ''; if (classes.length !== 0) { attrs.push(`class="${classes}"`); } - let width = args[4] || 0; + let width = args[3] || 0; if (width !== 0) { attrs.push(`width="${width}"`); } - let height = args[5] || 0; + let height = args[4] || 0; if (height !== 0) { attrs.push(`height="${height}"`); }