48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
<div class="flex flex-col rounded-lg shadow-lg overflow-hidden">
|
|
<div class="flex-1">
|
|
<a href={{ post.permalink }} class="block">
|
|
<div class="flex-shrink-0">
|
|
<img class="h-48 w-full mx-auto object-cover" src=/{{post.extra.imgPath}} alt="" />
|
|
</div>
|
|
<div class="flex-1 bg-white p-4 flex flex-col justify-between">
|
|
|
|
<h3 class="mt-2 text-xl leading-7 font-medium text-gray-900 text-left not-italic">
|
|
{{ post.title }}
|
|
</h3>
|
|
{% if post.description %}
|
|
<p class="mt-3 text-sm font-normal leading-5 text-gray-500 text-left">
|
|
{{ post.description }}
|
|
</p>
|
|
{% endif %}
|
|
</a>
|
|
<div class="flex items-center">
|
|
<div class="flex justify-between items-center">
|
|
<ul class="list-none flex author-list my-10 mr-2 px-0">
|
|
{% for author in post.extra.authors %}
|
|
{% set fullpath = "/people/" ~ author | replace(from='_', to='-' ) %}
|
|
{% if post.extra.authorImg %}
|
|
<li class="author-list-item">
|
|
<a href="{{fullpath}}" tooltip="{{author}}">
|
|
<img src="{{ post.extra.authorImg }}" alt="{{ author }}" class="
|
|
w-8
|
|
h-8
|
|
rounded-full
|
|
bg-gray-200
|
|
border-2 border-white
|
|
" />
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
|
|
<p class="text-gray-700 text-xs">
|
|
<time datetime="{{post.date}}">
|
|
{{ post.date | date(format="%B %e, %Y", timezone="America/Chicago") }}
|
|
</time>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |