From 70726286321783b9be655ebe9c4b98659660506d Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Fri, 2 May 2025 14:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20hugo=20minify=20breaks=20?= =?UTF-8?q?github=20card=20(#1434)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a div wrapper to avoid incorrect minification by hugo. Tested with sample https://codeberg.org/cthru/blowfish_test/src/branch/master/content/tests/1716983769844-github-card-test/index.md# --- layouts/shortcodes/github.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/shortcodes/github.html b/layouts/shortcodes/github.html index 56146975..484d7e90 100644 --- a/layouts/shortcodes/github.html +++ b/layouts/shortcodes/github.html @@ -4,6 +4,7 @@ {{- $githubColors := .Site.Data.githubColors -}} {{- with $githubData -}} +