Skip to content

Commit

Permalink
feat: Name changes images
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianthulin authored Nov 23, 2023
2 parents 4582e79 + 5127ce5 commit 5b09707
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/single-local-events.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
@stop

@section('above')
@if(!empty($post->featuredImage['src']))
@if(!empty($post->images['featuredImage']['src']))
@segment([
'layout' => 'full-width',
'image' => $post->featuredImage['src'],
'image' => $post->images['featuredImage']['src'],
'background' => 'primary',
'textColor' => 'light',
'overlay' => 'dark',
Expand All @@ -21,7 +21,7 @@
@stop

@section('content')
<div class="u-display--inline-flex {{empty($post->featuredImage['src']) ? 'u-margin__top--4' : ''}}">
<div class="u-display--inline-flex {{empty($post->images['featuredImage']['src']) ? 'u-margin__top--4' : ''}}">
@if(isset($event['date']))
@datebadge([
'date' => $event['date']
Expand All @@ -45,7 +45,7 @@
@section('sidebar-right')
@card([
'content' => $event['dateFormatted'],
'classList' => [empty($post->featuredImage['src']) ? 'u-margin__top--4' : '']
'classList' => [empty($post->images['featuredImage']['src']) ? 'u-margin__top--4' : '']
])
<div class="c-card__body">
@typography([
Expand Down

0 comments on commit 5b09707

Please sign in to comment.