Add Lotusdocs theme
This commit is contained in:
8
themes/lotusdocs/layouts/shortcodes/table.html
Normal file
8
themes/lotusdocs/layouts/shortcodes/table.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{{ $htmlTable := .Inner | .Page.RenderString }}
|
||||
{{ $class := .Get 0 }}
|
||||
{{ $old := "<table>" }}
|
||||
{{ $new := printf "<table class=\"table %s\">" $class }}
|
||||
{{ $htmlTable := replace $htmlTable $old $new }}
|
||||
{{ $htmlTable := replaceRE "align=\"([a-z]+)\"" "style=\"text-align: $1\"" $htmlTable}}
|
||||
|
||||
{{ $htmlTable | safeHTML }}
|
||||
Reference in New Issue
Block a user