progress in img path refactoring

This commit is contained in:
timurgordon
2022-07-21 15:44:13 +02:00
parent c1f19273b0
commit 7e3d225ccf
3 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
<div class="flex flex-col px-0 sm:px-4 pb-2">
<a href="{{post.permalink}}" class="border-0 text-gray-700 hover:!text-gray-700 font-normal text-left">
<img src="{{post.extra.imgPath}}" alt="" />
{% set url = '/' ~ post.relative_path | replace(from='_', to='-') | replace(from='index.md', to=post.extra.imgPath) %}
{{url}}
<img src="{{url}}" alt="img here" />
<div>
<h2 class="text-2xl">{{post.title}}</h2>
<div class="text-md text-gray-700 text-left line-clamp-3 text-ellipsis">