www_mycelium/templates/partials/personCard.html

28 lines
1.3 KiB
HTML
Raw Normal View History

2024-05-03 20:15:09 +00:00
<div class="flex flex-col px-0 sm:px-4 pb-2">
2024-08-19 12:46:48 +00:00
<a href="{{page.permalink}}" class="border-0 text-gray-50 hover:!text-gray-100 font-normal text-left">
2024-05-03 20:15:09 +00:00
{% set url = get_url(path='/' ~ page.relative_path | replace(from='_', to='-') | replace(from='index.md', to=page.extra.imgPath)) %}
2024-08-19 15:34:53 +00:00
<img class="mt-4 aspect-[4/4] rounded-xl" src="{{url}}" alt="{{page.title ~ ' Picture'}}" />
2024-05-03 20:15:09 +00:00
<div>
2024-08-19 12:46:48 +00:00
<br>
2024-08-19 15:34:53 +00:00
<h2 class="text-lg mt-2">{{page.title}}</h2>
2024-08-19 12:46:48 +00:00
<div class="text-gray-50 text-left line-clamp-3 text-ellipsis">
2024-05-03 20:15:09 +00:00
{% 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 %}
2024-08-19 12:46:48 +00:00
<a href="{{'/memberships/' ~ tag | replace(from='_', to='-' )}}" class="border-2 text-xs font-light bg-transparent hover:text-indigo-400 py-1 px-2 mr-2 my-1 border hover:border-indigo-400 border-gray-600 text-gray-50 rounded-full ">
2024-05-03 20:15:09 +00:00
{{tag}}
</a>
{% endfor %}
{% endif %}
</div>
</div>
</a>
</div>