diff --git a/layouts/partials/books/table-body.html b/layouts/partials/books/table-body.html index be7ce86..0f66e2a 100644 --- a/layouts/partials/books/table-body.html +++ b/layouts/partials/books/table-body.html @@ -23,8 +23,10 @@

{{- 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" }}) + {{- if ( index . "Original Publication Year" ) -}} + {{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}} +  (orig. {{ index . "Original Publication Year" }}) + {{- end -}} {{- end -}} @@ -62,8 +64,10 @@

{{- index . "Year Published" -}} - {{- if ( and ( ne ( index . "Original Publication Year" ) "" ) ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) ) -}} -  (orig. {{ index . "Original Publication Year" }}) + {{- if ( index . "Original Publication Year" ) -}} + {{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}} +  (orig. {{ index . "Original Publication Year" }}) + {{- end -}} {{- end -}} @@ -106,8 +110,10 @@

{{- index . "Year Published" -}} - {{- if ( and ( ne ( index . "Original Publication Year" ) "" ) ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) ) -}} -  (orig. {{ index . "Original Publication Year" }}) + {{- if ( index . "Original Publication Year" ) -}} + {{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}} +  (orig. {{ index . "Original Publication Year" }}) + {{- end -}} {{- end -}} @@ -149,7 +155,9 @@

{{- index . "Year Published" -}} {{- if ( index . "Original Publication Year" ) -}} - (orig. {{ index . "Orginal Publication Year" }}) + {{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}} +  (orig. {{ index . "Original Publication Year" }}) + {{- end -}} {{- end -}} n/a