From ef5592ab42d2925682ce2b211381cee9d9e7d17c Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Thu, 23 May 2024 18:24:05 -0700 Subject: [PATCH] fix: og data --- package-lock.json | 4 ++-- package.json | 2 +- src/_includes/base.liquid | 8 +++++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b9e3e48e..c127d9da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "17.0.2", + "version": "17.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "17.0.2", + "version": "17.0.3", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.2.2", diff --git a/package.json b/package.json index 8de000a1..1bdc96d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "17.0.2", + "version": "17.0.3", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid index 16b99bec..0f746e1a 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -4,11 +4,13 @@ {{ title }} {% elsif title %} {{ title }} • {{ meta.siteName }} + {% elsif artist.name_string %} + Artists • {{ artist.name_string }} • {{ meta.siteName }} {% elsif book.title %} Books • {{ book.title }} • {{ meta.siteName }} {% elsif movie.title %} Movies • {{ movie.title }}{% if movie.rating %} ({{ movie.rating }}){% endif %} • {{ meta.siteName }} - {% elsif movie.title %} + {% elsif show.title %} Shows • {{ show.title }} • {{ meta.siteName }} {% else %} {{ meta.siteName }} @@ -17,6 +19,8 @@ {%- capture pageDescription -%} {%- if schema == 'blog' -%} {{ post_excerpt | markdown | strip_html }} + {% elsif artist.description %} + {{ artist.description | truncate: 300 }} {% elsif book.description %} {{ book.description }} {% elsif movie.description %} @@ -34,6 +38,8 @@ {{ meta.url }}/assets/img/ogi/{{ title | slugifyString }}-preview.png {%- elsif schema == 'music' -%} {{ music.recent.artists[0].image }} + {%- elsif schema == 'artist' -%} + {{ artist.image }} {%- elsif schema == 'watching' -%} {%- assign featuredMovie = movies.recentlyWatched | first -%} {{ featuredMovie.backdrop }}