diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index baf1360..63159cc 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -248,31 +248,31 @@ hr { } } -table.markdown { +table.simple { border-collapse: collapse; border: 2px solid var(--text-1); } -table.markdown thead { +table.simple thead { background-color: var(--background-2); color: var(--text-2); border-bottom: 2px solid var(--text-1); } -table.markdown th, -table.markdown td { +table.simple th, +table.simple td { padding: 8px; } -table.markdown :is(th, td) + :is(th, td) { +table.simple :is(th, td) + :is(th, td) { border-left: 2px solid var(--text-1); } -table.markdown tbody tr:nth-child(odd) { +table.simple tbody tr:nth-child(odd) { background-color: var(--background-0); color: var(--text-0); } -table.markdown tbody tr:nth-child(even) { +table.simple tbody tr:nth-child(even) { background-color: var(--background-1); color: var(--text-1); } diff --git a/hugo.yaml b/hugo.yaml index 9fe82d2..66e2da1 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -2,6 +2,12 @@ markup: highlight: noClasses: false lineNos: true + goldmark: + parser: + attribute: + block: true + # this is enabled by default already + #title: true params: readingtime: true diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html deleted file mode 100644 index 580e16b..0000000 --- a/layouts/shortcodes/table.html +++ /dev/null @@ -1,10 +0,0 @@ -{{/* See https://willschenk.com/articles/2020/styling_tables_with_hugo/ */}} - -{{ $class := "markdown" }} -{{ with .Get "class" }} - {{ $class = delimit (slice $class .) " " }} -{{ end }} - -{{ $htmlTable := .Inner | .Page.RenderString (dict "display" "block") }} -{{ $new := printf `` $class }} -{{ (replace $htmlTable "
" $new) | safeHTML }}