Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pjbakker/flexible-seo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/table.html')
-rw-r--r--layouts/shortcodes/table.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html
new file mode 100644
index 0000000..c7ebf68
--- /dev/null
+++ b/layouts/shortcodes/table.html
@@ -0,0 +1,2 @@
+{{ $caption := printf "<table class=\"%s\"><caption class=\"text-center\">%s</caption>" ( .Get "class" ) ( .Get "caption" ) }}
+{{ .Inner | markdownify | replaceRE "<table>" $caption | safeHTML }}