From 41d3d4b8c3acb0d7d6c5b6c848349709b514092e Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 21 May 2024 12:40:29 -0700 Subject: [PATCH] chore: book meta + og images --- src/_includes/base.liquid | 6 +++++- src/pages/main/books/{books.html => book.html} | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) rename src/pages/main/books/{books.html => book.html} (97%) 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 --- {% tablericon "arrow-left" "Go back" %} Go back