diff --git a/layouts/partials/books-section.html b/layouts/partials/books-section.html new file mode 100644 index 0000000..da95a97 --- /dev/null +++ b/layouts/partials/books-section.html @@ -0,0 +1,23 @@ +
+
+
BOOKS
+
+
+
+ {{ range .Params.Books }} +
+
+

{{ .title }}

+
+ + {{ + +
+

{{ .body }}

+

Details

+
+
+ {{ end}} +
+
+
\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f4837f3..b0882e0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -50,7 +50,29 @@ } .writing-section { - padding-bottom: 28px; + padding-bottom: 64px; + } + + #books-section { + padding-bottom: 24px; + } + + #books-section h3 { + font-size: 21px; + font-weight: 700; + text-align: center; + height: 7rem; + } + + .book-cell { + text-align: center; + } + .book-cover img { + max-width: 140px; + } + + .book-stats { + padding-top: 10px; } diff --git a/layouts/writing/list.html b/layouts/writing/list.html index dd1f8da..dcdd643 100644 --- a/layouts/writing/list.html +++ b/layouts/writing/list.html @@ -2,21 +2,7 @@
{{ partial "essay-section" . }} -
-
BOOKS
- {{ range .Params.Books }} -
-
{{ .title }}
-
- - {{ - -
-

Details

-

{{ .body }}

-
- {{ end}} -
+ {{ partial "books-section" . }}
COLLECTIVE WRITING
{{ range .Params.Collective }}