fix: show page og:image

This commit is contained in:
Cory Dransfeldt 2024-08-08 18:43:19 -07:00
parent bf35b44f7a
commit 757b3273bb
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "21.6.6", "version": "21.6.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "21.6.6", "version": "21.6.7",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cdransf/api-text": "^1.4.0", "@cdransf/api-text": "^1.4.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "21.6.6", "version": "21.6.7",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"scripts": { "scripts": {

View file

@ -72,7 +72,7 @@
{%- when 'movie' -%} {%- when 'movie' -%}
{%- assign ogImage = 'https://cdn.coryd.dev' | append: movie.backdrop -%} {%- assign ogImage = 'https://cdn.coryd.dev' | append: movie.backdrop -%}
{%- when 'show' -%} {%- when 'show' -%}
{%- assign ogImage = 'https://cdn.coryd.dev/shows/backdrops/backdrop-' | append: show.backdrop -%} {%- assign ogImage = 'https://cdn.coryd.dev' | append: show.backdrop -%}
{%- when 'genre' -%} {%- when 'genre' -%}
{%- assign genreArtist = genre.artists | shuffleArray | first -%} {%- assign genreArtist = genre.artists | shuffleArray | first -%}
{%- assign ogImage = 'https://cdn.coryd.dev' | append: genreArtist.image -%} {%- assign ogImage = 'https://cdn.coryd.dev' | append: genreArtist.image -%}