Einbinden von CustomCSS setzt keine Site-Base mehr davor + kleinere Anpassungen um Leerzeilen zu vermeiden

This commit is contained in:
mdn 2023-01-22 00:47:23 +01:00
parent c14beceef6
commit 631c22e7c6
18 changed files with 134 additions and 146 deletions

View file

@ -1,14 +1,14 @@
{{ $htmlTable := .content }}
{{- $htmlTable := .content -}}
<!-- Tabellenklassen hinzufügen -->
{{ $old_tbl := "<table>"}}
{{ $new_tbl := printf "<table class=\"%s\">" .table_class }}
{{ $htmlTable := replace $htmlTable $old_tbl $new_tbl }}
{{- $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 }}
{{- $old_th := "<thead>" -}}
{{- $new_th := printf "<thead class=\"%s\">" .thead_class -}}
{{- $htmlTable := replace $htmlTable $old_th $new_th -}}
<!-- Tabellen-HTML-Code -->
{{ $htmlTable | safeHTML }}
<!-- Tabellen-HTML-Code -->
{{- $htmlTable | safeHTML -}}