feat(article-link): support front matter control of showCards option

This commit is contained in:
ZhenShuo Leo committed 2025-12-23 01:16:00 +08:00
1 parent 327712d228
commit e4ca3de291
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@
{{ $imgWrapperClasses := "" }}
{{ $cardContentClasses := "" }}
{{ if site.Params.list.showCards }}
{{ if .Params.showCards | default site.Params.list.showCards }}
{{ $cardClasses = printf "%s overflow-hidden rounded-lg border border-neutral-300 dark:border-neutral-600" $cardClasses }}
{{ $imgWrapperClasses = "" }}
{{ $cardContentClasses = printf "%s p-4" $cardContentClasses }}