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

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -3,14 +3,12 @@ title: "Abdelrahman Ghanem"
description: "A software engineer, mainly working on Jumpscale platform and Kosmos."
template: "person_page.html"
extra:
socialLinks: { LinkedIn: "https://www.linkedin.com/in/abdelrahman-ghanem-41a31815/" }
socialLinks:
{ LinkedIn: "https://www.linkedin.com/in/abdelrahman-ghanem-41a31815/" }
organizations: ["ThreefoldTech"]
imgPath: /images/people/abdelrahman_ghanem.jpg
imgPath: abdelrahman_ghanem.jpg
taxonomies:
memberships:
[foundation]
memberships: [foundation]
---
A software engineer, mainly working on Jumpscale platform and Kosmos.

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