fix: removing broken links to unpublished episodes

This commit is contained in:
Paul Couture 2023-12-21 15:17:18 -06:00
parent 06e5101199
commit c46664492d

View File

@ -56,9 +56,9 @@ class="avatar" data-bs-toggle="tooltip"
<strong>{{ $thisPodcast->name }}</strong> <strong>{{ $thisPodcast->name }}</strong>
@endif @endif
<br> <br>
@if ($thisPodcast->published) @if ($thisEpisode->published)
<a href="/podcast/{{ $thisPodcast->slug }}/episode/{{ $thisEpisode->slug }}">Episode {{ number_format($thisEpisode->episode_number + 0) }}<br><em> <a href="/podcast/{{ $thisPodcast->slug }}/episode/{{ $thisEpisode->slug }}">Episode {{ number_format($thisEpisode->episode_number + 0) }}<br>
{{ $thisEpisode->episode_date->format('D, M j') }}<sup>{{ $thisEpisode->episode_date->format('S') }}</sup>{{ $thisEpisode->episode_date->format(', Y') }}</em></a> <em>{{ $thisEpisode->episode_date->format('D, M j') }}<sup>{{ $thisEpisode->episode_date->format('S') }}</sup>{{ $thisEpisode->episode_date->format(', Y') }}</em></a>
@else @else
Episode {{ number_format($thisEpisode->episode_number + 0) }}<br> Episode {{ number_format($thisEpisode->episode_number + 0) }}<br>
<em>{{ $thisEpisode->episode_date->format('D, M j') }}<sup>{{ $thisEpisode->episode_date->format('S') }}</sup>{{ $thisEpisode->episode_date->format(', Y') }}</em> <em>{{ $thisEpisode->episode_date->format('D, M j') }}<sup>{{ $thisEpisode->episode_date->format('S') }}</sup>{{ $thisEpisode->episode_date->format(', Y') }}</em>