{% set url = '/' ~ post.relative_path | replace(from='_', to='-') | replace(from='index.md', to=post.extra.imgPath) %} {% set url2 = get_url(path='/' ~ post.relative_path | replace(from='_', to='-') | replace(from='index.md', to=post.extra.imgPath)) %} img here

{{post.title}}

{% if post.description %} {{post.description}} {% else %} {{post.content | safe}} {% endif %}