From e552dbab07a80d2b4dce2f440ff20d99ef7b674a Mon Sep 17 00:00:00 2001 From: Paul Couture Date: Sun, 26 May 2024 06:48:58 -0500 Subject: [PATCH] fix: minor fixes for templates. --- site/resources/views/episodes/episode.blade.php | 2 ++ site/resources/views/home/support/page.blade.php | 1 + .../views/profile/partials/single-artist-card.blade.php | 2 ++ 3 files changed, 5 insertions(+) diff --git a/site/resources/views/episodes/episode.blade.php b/site/resources/views/episodes/episode.blade.php index d68e377..5d104a9 100644 --- a/site/resources/views/episodes/episode.blade.php +++ b/site/resources/views/episodes/episode.blade.php @@ -2,7 +2,9 @@ @section('page-title', $pageTitle) +@if (!in_null($episode->artwork)) @section('meta_og_img', config('app.static_asset_url') . '/thumbnails/' . $episode->artwork->filename) +@endif @section('meta_description', 'Artwork for the ' . $episode->podcast->name . ' podcast, episode ' . $episode->episode_number + 0 . ' by ' . $episode->artwork->artist->name) diff --git a/site/resources/views/home/support/page.blade.php b/site/resources/views/home/support/page.blade.php index 41fe8b6..2ddb534 100644 --- a/site/resources/views/home/support/page.blade.php +++ b/site/resources/views/home/support/page.blade.php @@ -107,6 +107,7 @@ functionality, it took a few days to stabilize the cacheing and hardware, but yo diff --git a/site/resources/views/profile/partials/single-artist-card.blade.php b/site/resources/views/profile/partials/single-artist-card.blade.php index 424fb67..836266b 100644 --- a/site/resources/views/profile/partials/single-artist-card.blade.php +++ b/site/resources/views/profile/partials/single-artist-card.blade.php @@ -7,7 +7,9 @@ alt="{{ $artist->name }}" />

{{ $artist->name }}

{{ $artist->location ?? 'No Agenda Nation' }}

+ @if ($artist->artworks->count())

Artist For {{ $artist->artworks->sortBy('created_at')->first()->created_at->diffForHumans(now(), Carbon\CarbonInterface::DIFF_ABSOLUTE) }}

+ @endif @if ($artist->bio)

Bio:

{{ nl2br($artist->bio) }}