Update (list): Fix crash on list output
This commit is contained in:
@@ -30,7 +30,7 @@ class="text-decoration-none">{{ $post->title }}</a>
|
||||
</div>
|
||||
@else
|
||||
<div class="mb-3">
|
||||
<small class="text-secondary">{{ $post->excerpt }}</small>
|
||||
<small class="text-secondary">{{ str_first_sentence($post->excerpt) }}</small>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
$tag = "h{$level}";
|
||||
@endphp
|
||||
|
||||
<{{ $tag }}>{{ $data['text'] ?? '' }}</{{ $tag }}>
|
||||
<{{ $tag }} class="fw-bold">{!! $data['text'] ?? '' !!}</{{ $tag }}>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
@endphp
|
||||
|
||||
<figure class="image {{ $classes }}">
|
||||
<img src="{{ $data['file']['url'] }}" alt="{{ $data['caption'] ?: '' }}">
|
||||
<img class="img-fluid rounded-2 shadow-sm mb-2" src="{{ $data['file']['url'] }}" alt="{{ $data['caption'] ?: '' }}">
|
||||
@if (!empty($data['caption']))
|
||||
<footer class="image-caption">
|
||||
{{ $data['caption'] }}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@php
|
||||
$tag = 'ul';
|
||||
if ('ordered' === $data['type']) {
|
||||
if ('ordered' === $data['style']) {
|
||||
$tag = 'ol';
|
||||
}
|
||||
@endphp
|
||||
|
||||
Reference in New Issue
Block a user