1
0

Fix: Content transformed to code block

This commit is contained in:
Richard Dern 2024-04-25 10:25:00 +02:00
parent 11a58333a7
commit 32e6c4dae1
2 changed files with 20 additions and 24 deletions

View File

@ -1,23 +1,23 @@
<a class="article-card-link" href="{{ $bundle->getPath() }}">
<article class="article-card">
@if (!empty($cover))
{!! $cover !!}
@endif
<article class="article-card">
@if (!empty($cover))
{!! $cover !!}
@endif
@if(!empty($mainLink) && $mainLink['isDead'])
<div class="ribbon dead" title="{{ $mainLink['reason'] }}">
Lien mort depuis le {{ Carbon\Carbon::parse($mainLink['checked'])->format('d/m/Y') }}
</div>
@endif
@if(!empty($mainLink) && $mainLink['isDead'])
<div class="ribbon dead" title="{{ $mainLink['reason'] }}">
Lien mort depuis le {{ Carbon\Carbon::parse($mainLink['checked'])->format('d/m/Y') }}
</div>
@endif
<h2>{!! $bundle->getArticleTitle() !!}</h2>
<section class="article-card-body">
@if (!empty($date))
<p><time datetime="{{ $date->toIso8601String() }}">{{ $date->isoFormat('LL') }}</time></p>
@endif
@if (!empty($section))
<p>{!! $section->getArticleTitle() !!}</p>
@endif
</section>
</article>
<h2>{!! $bundle->getArticleTitle() !!}</h2>
<section class="article-card-body">
@if (!empty($date))
<p><time datetime="{{ $date->toIso8601String() }}">{{ $date->isoFormat('LL') }}</time></p>
@endif
@if (!empty($section))
<p>{!! $section->getArticleTitle() !!}</p>
@endif
</section>
</article>
</a>

View File

@ -1,5 +1 @@
<section class="article-list">
@foreach ($bundles as $bundle)
{!! $bundle->renderCard() !!}
@endforeach
</section>
<section class="article-list">@foreach ($bundles as $bundle){!! $bundle->renderCard() !!}@endforeach</section>