blogamore/layouts/partials/shortcodes/table.html

14 lines
No EOL
466 B
HTML

{{- $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 -}}