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