From 4742e2b6ac3df678abe856206b7655d04dac0a4e Mon Sep 17 00:00:00 2001 From: Lam Nguyen Date: Thu, 1 May 2025 09:59:10 -0700 Subject: [PATCH] fix: Double header on bootstrap table --- layouts/shortcodes/bootstrap-table.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/layouts/shortcodes/bootstrap-table.html b/layouts/shortcodes/bootstrap-table.html index 9489b8ac..8981d39f 100644 --- a/layouts/shortcodes/bootstrap-table.html +++ b/layouts/shortcodes/bootstrap-table.html @@ -1,8 +1,11 @@ {{ $htmlTable := .Inner | markdownify }} {{ $class := .Get 0 }} -{{ $old := "" }} -{{ $new := printf "
" $class "table-v1" }} -{{ $htmlTable := replace $htmlTable $old $new }} +{{ $oldTable := "
" }} +{{ $newTable := printf "
" $class "table-v1" }} +{{ $oldP := "

" }} +{{ $newP := printf "

" "table-v1"}} +{{ $htmlTable := replace $htmlTable $oldTable $newTable }} +{{ $htmlTable := replace $htmlTable $oldP $newP }} {{ $htmlTable | safeHTML }}