Add author img

This commit is contained in:
samaradel
2022-04-21 12:55:59 +02:00
parent 99b249578b
commit 0436493856
9 changed files with 41 additions and 9 deletions

View File

@@ -12,7 +12,7 @@
<h4 class="text-sm not-italic font-light leading-6 text-gray-600">
{{ featured.date | date(format="%B %e, %Y", timezone="America/Chicago")}} -
{{ featured.extra.author }}
{{ featured.extra.authors }}
</h4>
</div>

View File

@@ -15,6 +15,33 @@
</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='-' ) %}
<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>
{% 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>