blog image path rendering fix

This commit is contained in:
timurgordon
2022-08-11 17:20:02 +03:00
parent 7e827e010e
commit 098060c65d
3 changed files with 4353 additions and 5 deletions

View File

@@ -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>