diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid index 005c34ae..6c330050 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -1,9 +1,11 @@ {%- capture fullUrl -%}{{ meta.url }}{{ page.url }}{%- endcapture -%} {%- capture pageTitle -%} - {% if page.url | isPost %} + {%- if schema == 'blog' -%} {{ title }} {% elsif title %} {{ title }} • {{ meta.siteName }} + {% elsif book.title %} + Books • {{ book.title }} • {{ meta.siteName }} {% else %} {{ meta.siteName }} {% endif %} @@ -19,6 +21,8 @@ {%- elsif schema == 'books' -%} {%- assign featuredBook = books | bookStatus: 'started' | reverse | first -%} {{ featuredBook.image }} + {%- elsif schema == 'book' -%} + {{ book.image }} {%- else -%} {{ meta.meta_data.opengraph_default }} {%- endif -%} diff --git a/src/pages/main/books/books.html b/src/pages/main/books/book.html similarity index 97% rename from src/pages/main/books/books.html rename to src/pages/main/books/book.html index 500fa2e6..5147298c 100644 --- a/src/pages/main/books/books.html +++ b/src/pages/main/books/book.html @@ -5,6 +5,8 @@ pagination: size: 1 alias: book permalink: /books/{{ book.isbn }}/ +isbn: {{ book.isbn }} +schema: book --- <a class="back-link-header link-icon flex-centered" href="/books">{% tablericon "arrow-left" "Go back" %} Go back</a> <article class="book-focus">