From d4aa50207f1dc37bd665b91fa21cff9e26a80fc6 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sun, 17 Dec 2017 19:44:56 -0500 Subject: new shortcode pure_table --- layouts/shortcodes/pure_table.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 layouts/shortcodes/pure_table.html (limited to 'layouts') diff --git a/layouts/shortcodes/pure_table.html b/layouts/shortcodes/pure_table.html new file mode 100644 index 0000000..91236bc --- /dev/null +++ b/layouts/shortcodes/pure_table.html @@ -0,0 +1,20 @@ +{{ $fields := (index .Params 0) }} +{{ $data := after 1 .Params }} + + + + {{ range split $fields "|"}} + + {{ end }} + + + {{ range $data}} + + {{ $items := split . "|" }} + {{ range $items }} + + {{ end }} + + {{ end }} + +
{{ . }}
{{ . }}
\ No newline at end of file -- cgit v1.2.3