From 3c4070ab4536b939ecef052637ef67017fb32a89 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 5 May 2024 22:43:20 +0100 Subject: [PATCH] feat: improve table shortcode style --- modules/blox-tailwind/layouts/shortcodes/table.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/blox-tailwind/layouts/shortcodes/table.html b/modules/blox-tailwind/layouts/shortcodes/table.html index 37a5e651..42e75a62 100644 --- a/modules/blox-tailwind/layouts/shortcodes/table.html +++ b/modules/blox-tailwind/layouts/shortcodes/table.html @@ -25,12 +25,12 @@ {{ $is_remote := strings.HasPrefix $src "http" }} {{ $rows := transform.Unmarshal (dict "delimiter" $delimiter) (.Page.Resources.Get $src).Content }} - +
{{ if $useHeaderRow }} {{ $headerRow := index $rows 0 }} {{ $rows = after 1 $rows }} - {{ range $headerRow }} {{ end }} + {{ range $headerRow }} {{ end }} {{ end }} @@ -38,9 +38,9 @@ {{ range . }} {{ if (findRE "^\\d+$" .) }} - + {{ else }} - + {{ end }} {{ end }}
{{ . | markdownify | emojify }}
{{ . | markdownify | emojify }}
{{ . }}{{ . }}{{ . | markdownify | emojify }}{{ . | markdownify | emojify }}