Fix images starting with / or not

This commit is contained in:
NH Gooi
2025-11-20 13:52:46 +01:00
parent 8c22515397
commit b0ae121363

View File

@@ -32,7 +32,7 @@
@elseif($block->type == "image")
<a class="post_image page_margin_top prettyPhoto" rel="prettyPhoto" href="/{{$block->data->url}}"
title="{{$block->data->title}} &copy; {{$block->data->title}}">
<img src="/{{$block->data->url}}" class="attachment-small-slider-thumb size-small-slider-thumb wp-post-image"
<img src="/{{ltrim($block->data->url, '/')}}" class="attachment-small-slider-thumb size-small-slider-thumb wp-post-image"
alt="{{$block->data->title}}" title="" style="display: block;">
</a>
<div class="sentence">