blog image path rendering fix
This commit is contained in:
@@ -52,7 +52,8 @@
|
||||
</div>
|
||||
<div class="my-2 sharethis-inline-share-buttons"></div>
|
||||
</section>
|
||||
<img class="mb-8 mx-auto" src={{"/" ~ page.extra.imgPath}} alt="">
|
||||
{% set img_url = get_url(path='/' ~ page.relative_path | replace(from='_', to='-') | replace(from='index.md', to=page.extra.imgPath)) %}
|
||||
<img class="mb-8 mx-auto" src={{img_url}} alt="{{page.title ~ 'Picture'}}">
|
||||
<div id="article">{{ page.content | safe }}</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user