Skip to content

Commit 66038e4

Browse files
authored
fix: Double header on bootstrap table (#243)
1 parent 0e41540 commit 66038e4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

layouts/shortcodes/bootstrap-table.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{{ $htmlTable := .Inner | markdownify }}
22
{{ $class := .Get 0 }}
3-
{{ $old := "<table>" }}
4-
{{ $new := printf "<table class=\"%s %s\">" $class "table-v1" }}
5-
{{ $htmlTable := replace $htmlTable $old $new }}
3+
{{ $oldTable := "<table>" }}
4+
{{ $newTable := printf "<table class=\"%s %s\">" $class "table-v1" }}
5+
{{ $oldP := "<p>" }}
6+
{{ $newP := printf "<p class=\"%s\">" "table-v1"}}
7+
{{ $htmlTable := replace $htmlTable $oldTable $newTable }}
8+
{{ $htmlTable := replace $htmlTable $oldP $newP }}
69
{{ $htmlTable | safeHTML }}
710

811
<!-- Add default option for table of "narrow" if one is not provided -->

0 commit comments

Comments
 (0)