From 48450ec64fadb57931f40e3a291e8503d206dc1c Mon Sep 17 00:00:00 2001 From: Devin Haska Date: Sun, 18 Feb 2024 00:54:23 -0800 Subject: [PATCH] feat: update book layout --- src/_layouts/book.html | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/src/_layouts/book.html b/src/_layouts/book.html index eafe4fc..3de1562 100644 --- a/src/_layouts/book.html +++ b/src/_layouts/book.html @@ -10,24 +10,15 @@ layout: base

{{ title }}

- {% if subtitle %}

{{ subtitle }}

{% endif %} -
-
-
- Author -
-
{{ author }}
-
- ISBN -
-
{{ isbn }}
-
-
-
    - {% for tag in tags | filter(["catalogue", "book"]) %} -
  • {{ tag }}
  • - {% endfor %} -
+ {% if subtitle %}

{{ subtitle }}

{% endif %} + {% if author %}by {{ author }}{% endif %} + {% if tags | filter(["catalogue", "book"]) | length > 0 %} +
    + {% for tag in tags | filter(["catalogue", "book"]) %} +
  • {{ tag }}
  • + {% endfor %} +
+ {% endif %}
{% if image %}
{% image image, "", "" %}