mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-28 20:06:37 +00:00
* add new table shortcode Signed-off-by: Abigail McCarthy <mabigail@vmware.com> * fix typo Signed-off-by: Abigail McCarthy <mabigail@vmware.com> * update shortcode commentn Signed-off-by: Abigail McCarthy <mabigail@vmware.com> * fix messed up table Signed-off-by: Abigail McCarthy <mabigail@vmware.com> * fixing 2 more tables Signed-off-by: Abigail McCarthy <mabigail@vmware.com> * update 1.4 supporteed providers Signed-off-by: Abigail McCarthy <mabigail@vmware.com> * add note about links in tables Signed-off-by: Abigail McCarthy <mabigail@vmware.com>
11 lines
444 B
HTML
11 lines
444 B
HTML
<!--
|
|
# Original table shortcode
|
|
# https://github.com/kubernetes/website/blob/master/layouts/shortcodes/table.html
|
|
-->
|
|
{{ $hasCaption := isset .Params "caption" }}
|
|
{{ $caption := .Get "caption" }}
|
|
{{ $captionEl := printf "<table><caption style=\"display: none;\">%s</caption>" $caption }}
|
|
{{ $table := .Inner | markdownify }}
|
|
{{ $html := cond $hasCaption ($table | replaceRE "<table>" $captionEl) $table | safeHTML }}
|
|
{{ $html }}
|