From d0555f5a6747297dbb591caaad57b130ecb2bce9 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 19 Jun 2025 14:03:07 +0800 Subject: =?UTF-8?q?feat(like-button):=20=E5=B0=86=E7=82=B9=E8=B5=9E?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E6=A0=B7=E5=BC=8F=E5=92=8C=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=8F=90=E5=8F=96=E5=88=B0=E7=8B=AC=E7=AB=8B=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 提取CSS和JavaScript到单独文件以提高可维护性 使用Hugo资源管道进行最小化处理 保留原有功能并优化代码结构 Former-commit-id: e276f3a456980c64a80eb5cc29567703f4268fb7 --- layouts/partials/components/like-button.html | 260 ++------------------------- 1 file changed, 10 insertions(+), 250 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/components/like-button.html b/layouts/partials/components/like-button.html index aa665453..b377bf78 100644 --- a/layouts/partials/components/like-button.html +++ b/layouts/partials/components/like-button.html @@ -9,255 +9,15 @@ - - - +{{ with resources.Get "js/like-button.js" | minify }} + +{{ end }} -- cgit v1.2.3