Shortcodes für Tabelle und Downloads eingebaut sowie eigenen Typ für feed gebaut
This commit is contained in:
parent
23649f935f
commit
f8c72825f0
9 changed files with 137 additions and 4 deletions
14
layouts/partials/shortcodes/table.html
Normal file
14
layouts/partials/shortcodes/table.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ $htmlTable := .content }}
|
||||
|
||||
<!-- Tabellenklassen hinzufügen -->
|
||||
{{ $old_tbl := "<table>"}}
|
||||
{{ $new_tbl := printf "<table class=\"%s\">" .table_class }}
|
||||
{{ $htmlTable := replace $htmlTable $old_tbl $new_tbl }}
|
||||
|
||||
<!-- Tabellenkopf hinzufügen -->
|
||||
{{ $old_th := "<thead>"}}
|
||||
{{ $new_th := printf "<thead class=\"%s\">" .thead_class }}
|
||||
{{ $htmlTable := replace $htmlTable $old_th $new_th }}
|
||||
|
||||
<!-- Tabellen-HTML-Code -->
|
||||
{{ $htmlTable | safeHTML }}
|
Loading…
Add table
Add a link
Reference in a new issue