Fix images starting with / or not
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
@elseif($block->type == "image")
|
@elseif($block->type == "image")
|
||||||
<a class="post_image page_margin_top prettyPhoto" rel="prettyPhoto" href="/{{$block->data->url}}"
|
<a class="post_image page_margin_top prettyPhoto" rel="prettyPhoto" href="/{{$block->data->url}}"
|
||||||
title="{{$block->data->title}} © {{$block->data->title}}">
|
title="{{$block->data->title}} © {{$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;">
|
alt="{{$block->data->title}}" title="" style="display: block;">
|
||||||
</a>
|
</a>
|
||||||
<div class="sentence">
|
<div class="sentence">
|
||||||
|
|||||||
Reference in New Issue
Block a user