diff --git a/src/resources/views/public/_json-ld.blade.php b/src/resources/views/public/_json-ld.blade.php index cbf1b9b..e9c4d60 100644 --- a/src/resources/views/public/_json-ld.blade.php +++ b/src/resources/views/public/_json-ld.blade.php @@ -14,9 +14,9 @@ "image": [ "{{ $event->present()->image() }}" ], - @isset($event->url) + @empty(!$event->url) "url": "{{ $event->url }}", - @endisset + @endempty "mainEntityOfPage": { "@type": "WebPage", "@id": "{{ $event->uri() }}" diff --git a/src/resources/views/public/_list-item.blade.php b/src/resources/views/public/_list-item.blade.php index ad362c0..54f8c67 100644 --- a/src/resources/views/public/_list-item.blade.php +++ b/src/resources/views/public/_list-item.blade.php @@ -10,12 +10,12 @@ {{ $event->venue }}
{!! nl2br($model->summary) !!}
- @endisset - @isset($model->url) + @endempty + @empty(!$model->url) - @endisset + @endempty @lang('db.Add to calendar') - @isset($model->body) + @empty(!$model->body)