Render articles directly from block source instead of prerendered text

This commit is contained in:
NH Gooi
2025-03-18 21:51:18 +01:00
parent 37745e8ae9
commit 2e1f496eea
2 changed files with 13 additions and 9 deletions

View File

@@ -87,8 +87,10 @@
@endif
@endif
@if(is_array($news->content))
@include('partial/nh_story', ['content' => $news->content])
@if($type == "nhnieuws")
@include('partial/nh_story', ['content' => $news->content])
@elseif($type == "artikel")
@include('partial/block_story', ['content' => $news->content])
@else
<div class="text">
<p>{!!$news->content!!}</p>