1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-05 10:27:32 +00:00
Yuika/partials/post-card.hbs

48 lines
1.6 KiB
Handlebars
Raw Normal View History

<div class="post-card">
<article class="relative w-full h-full hover:bg-gray-400 transition duration-500 ease-in-out py-4 px-4">
2019-11-08 20:59:26 +00:00
{{> post-background}} {{!--Special header-image.hbs partial to generate the background image--}}
<div class="h-full">
2019-11-08 20:59:26 +00:00
</div>
</div>
<div class="mt-4 py-1">
2019-11-08 20:59:26 +00:00
{{#if primary_tag}}
{{#primary_tag}}
2019-11-25 19:25:00 +00:00
<a href="{{url}}">
<span class="primary-tag-header">{{name}}</span>
</a>
2019-11-08 20:59:26 +00:00
{{/primary_tag}}
{{/if}}
2019-11-25 19:25:00 +00:00
</div>
<div class="mt-0 text-xl hover:text-yuika-blue-700 transition duration-500 ease-in-out">
2019-11-08 20:59:26 +00:00
<a href="{{url}}"><h1 class="font-light">{{title}}</h1></a>
</div>
<div class="mt-0 text-xs">
2019-11-25 19:25:00 +00:00
<p><span class="post-card-byline-date"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time> <span class="bull">&bull;</span> {{reading_time}}</span></p>
2019-11-09 11:32:42 +00:00
</div>
{{#if authors}}
<div class="author-list text-xs ">
2020-06-16 10:47:02 +00:00
<div class="author-images">
2019-11-08 20:59:26 +00:00
{{#foreach authors}}
{{#if profile_image}}
<div class="h-8 ml-1 mr-3">
<a href="{{url}}">
<img class="h-full rounded-full" src="{{img_url profile_image size="xs"}}" alt="{{name}}"/>
</a>
</div>
{{/if}}
{{/foreach}}
</div>
2020-06-16 10:47:02 +00:00
<div class="author-names">
2019-11-08 20:59:26 +00:00
<div>
<p>{{#has author="count:>2"}}Multiple authors{{else}}{{authors}}{{/has}}</p>
</div>
</div>
</div>
{{/if}}
<div class="block mt-2 mb-4 text-sm excerpt overflow-hidden">
2019-11-25 19:25:00 +00:00
<p>{{excerpt words="30"}}</p>
</div>
2019-11-08 20:59:26 +00:00
</article>
2019-11-08 20:59:26 +00:00
</div>