From 879c557a310159148858345110c1d94af5ef5f30 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Fri, 19 May 2023 21:50:50 -0600 Subject: [PATCH] improvements --- assets/css/components/table.scss | 8 ++++++++ layouts/partials/books/table-body.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/css/components/table.scss b/assets/css/components/table.scss index 25edffe..ed51377 100644 --- a/assets/css/components/table.scss +++ b/assets/css/components/table.scss @@ -20,3 +20,11 @@ table { border: 1px solid $dark; } } + +td[colspan] { + text-align: center; + + & h3 { + font-weight: bold; + } +} diff --git a/layouts/partials/books/table-body.html b/layouts/partials/books/table-body.html index c427467..be7ce86 100644 --- a/layouts/partials/books/table-body.html +++ b/layouts/partials/books/table-body.html @@ -23,7 +23,7 @@

{{- index . "Year Published" -}} - {{- if ( and ( ne ( index . "Original Publication Year" ) "" ) ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) ) -}} + {{- if ( and ( ne ( index . "Original Publication Year" ) "" ) ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) ( ne ( index . "Original Publication Year" ) nil ) ) -}}  (orig. {{ index . "Original Publication Year" }}) {{- end -}}