We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618f2b5 commit b93183dCopy full SHA for b93183d
layouts/shortcodes/tomlToTable.html
@@ -6,6 +6,7 @@
6
7
caption = 'Table caption'
8
align = ["left", "left", "right"]
9
+width = "80%"
10
widths = ["10%", "50%", "20%"]
11
headerrows = 1
12
footer-rows = 3
@@ -59,7 +60,7 @@
59
60
{{- $header := first $headerrows $data.row }}
61
{{- $body := last (math.Sub $numrows $headerrows) $data.row }}
62
-<table class="table" id="{{ $id }}">
63
+<table class="table" id="{{ $id }}" {{- with $data.width }}style="width: {{ . }}"{{- end }}>
64
{{- with $data.caption }}
65
<caption><span class="caption-text">{{ . }}</span><a class="headerlink" href="#{{ $id }}" title="Link to this table">#</a></caption>
66
{{- end }}
0 commit comments