edit filter

This commit is contained in:
sasha-astiadi 2024-09-26 02:40:14 +02:00
parent 188a5aa22a
commit 423f7e5fcd
3 changed files with 3 additions and 19 deletions

View File

@ -4,7 +4,7 @@ weight: 3
description: Growing up in a multicultural environment has made me an enthusiastic and very open-minded person. description: Growing up in a multicultural environment has made me an enthusiastic and very open-minded person.
taxonomies: taxonomies:
people: [marion_ravarino] people: [marion_ravarino]
memberships: [team] memberships:
categories: [foundation] categories: [foundation]
extra: extra:
imgPath: marion_ravarino.jpg imgPath: marion_ravarino.jpg

View File

@ -4,7 +4,7 @@ weight: 2
description: Nature-inspired software developer, turning tech and teamwork into tools for change. description: Nature-inspired software developer, turning tech and teamwork into tools for change.
taxonomies: taxonomies:
people: [timur_gordon] people: [timur_gordon]
memberships: [team] memberships:
categories: [foundation] categories: [foundation]
extra: extra:
imgPath: timur_gordon.jpg imgPath: timur_gordon.jpg

View File

@ -3,23 +3,7 @@
{% set url = get_url(path='/' ~ page.relative_path | replace(from='_', to='-') | replace(from='index.md', to=page.extra.imgPath)) %} {% set url = get_url(path='/' ~ page.relative_path | replace(from='_', to='-') | replace(from='index.md', to=page.extra.imgPath)) %}
<img src="{{url}}" alt="{{page.title ~ ' Picture'}}" /> <img src="{{url}}" alt="{{page.title ~ ' Picture'}}" />
<div> <div>
<h2 class="text-2xl my-4">{{page.title}}</h2> <h2 class="text-xl my-4">{{page.title}}</h2>
<div class="text-md text-gray-700 text-left line-clamp-3 text-ellipsis">
{% if page.description %}
{{page.description}}
{% else %}
{{page.content | safe}}
{% endif %}
</div>
<div class="my-2 flex flex-row items-start flex-wrap">
{% if page.taxonomies.memberships %}
{% for tag in page.taxonomies.memberships %}
<a href="{{'/memberships/' ~ tag | replace(from='_', to='-' )}}" class="border-1 text-md font-bold bg-transparent hover:text-blue-700 py-1 px-2 mr-2 my-1 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full ">
#{{tag}}
</a>
{% endfor %}
{% endif %}
</div>
</div> </div>
</a> </a>
</div> </div>