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

This commit is contained in:
ZhenShuo Leo
2025-12-15 17:50:09 +08:00
parent 327712d228
commit e4ca3de291

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 }}