fixes to accomodate news post without image

This commit is contained in:
timurgordon
2023-01-04 10:21:36 +03:00
parent b37690ec82
commit e765e1a1d2
7 changed files with 34 additions and 22 deletions

View File

@@ -101,8 +101,10 @@
</section>
</div>
<section class="post-image mx-auto w-full">
{% if page.extra.imgPath %}
{% set img_url = get_url(path='/' ~ page.relative_path | replace(from='_', to='-') | replace(from='index.md', to=page.extra.imgPath)) %}
<img src="{{img_url}}" />
<img src="{{img_url}}" />
{%endif%}
</section>
<div class="py-12">