fix csv table shortcode
parent
937449e1cc
commit
c3cc0d5e7b
|
@ -4,8 +4,8 @@
|
||||||
<table style="margin:0;white-space:nowrap">
|
<table style="margin:0;white-space:nowrap">
|
||||||
{{ with $caption }}<caption>{{- . -}}</caption>{{ end }}
|
{{ with $caption }}<caption>{{- . -}}</caption>{{ end }}
|
||||||
{{ if $useHeaderRow -}}
|
{{ if $useHeaderRow -}}
|
||||||
{{- $rows = after 1 $rows -}}
|
|
||||||
<thead><tr>{{ range (index $rows 0) }}<th>{{- . -}}</th>{{ end }}</tr></thead>
|
<thead><tr>{{ range (index $rows 0) }}<th>{{- . -}}</th>{{ end }}</tr></thead>
|
||||||
|
{{- $rows = after 1 $rows -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
<tbody>
|
<tbody>
|
||||||
{{ range $rows -}}
|
{{ range $rows -}}
|
||||||
|
|
Loading…
Reference in New Issue