Make bs-table responsive
This commit is contained in:
parent
60df5fc68b
commit
fb2f3a418b
1 changed files with 2 additions and 1 deletions
|
|
@ -5,5 +5,6 @@
|
|||
|
||||
{{- $css_class := .Get 0 | default "table" -}}
|
||||
{{- $html_table := .Inner | markdownify -}}
|
||||
{{- $html_table = replace $html_table "<table>" (printf `<table class="%s">` $css_class) -}}
|
||||
{{- $html_table = replace $html_table "<table>" (printf `<div class="table-responsive"><table class="%s">` $css_class) -}}
|
||||
{{- $html_table = replace $html_table "</table>" "</table></div>" -}}
|
||||
{{- $html_table | safeHTML -}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue