mirror of
https://github.com/Damillora/Yuika
synced 2024-11-05 02:17:32 +00:00
69 lines
2.4 KiB
Handlebars
69 lines
2.4 KiB
Handlebars
<div class="post-card">
|
|
<article class="relative md:flex md:flex-row w-full h-full transition duration-500 ease-in-out py-4 px-4">
|
|
<a href="{{url}}">
|
|
{{> post-background}} {{!--Special header-image.hbs partial to generate the background image--}}
|
|
</a>
|
|
<div class="md:pl-4">
|
|
<div class="pt-4 md:pt-0 flex flex-row">
|
|
{{#if primary_tag}}
|
|
{{#primary_tag}}
|
|
<div class="pr-2">
|
|
<a href="{{url}}">
|
|
{{#if accent_color}}
|
|
<span class="tag-accent-color small" style="background-color: {{accent_color}};"></span>
|
|
{{else}}
|
|
<span class="tag-accent-color small"></span>
|
|
{{/if}}
|
|
<span class="text-sm hover:underline">{{name}}</span>
|
|
</a>
|
|
</div>
|
|
{{/primary_tag}}
|
|
{{/if}}
|
|
{{#has visibility="paid"}}
|
|
<div class="pr-2">
|
|
<a href="/subscribe">
|
|
<span class="text-sm text-red-700 hover:underline">Paid content</span>
|
|
</a>
|
|
</div>
|
|
{{/has}}
|
|
{{#has visibility="members"}}
|
|
<div class="pr-2">
|
|
<a href="/subscribe">
|
|
<span class="text-sm text-yuika-blue-700 hover:underline">Member-exclusive</span>
|
|
</a>
|
|
</div>
|
|
{{/has}}
|
|
</div>
|
|
<div class="mt-0 text-yuika-blue-700 hover:underline transition duration-500 ease-in-out">
|
|
<a href="{{url}}"><h1 class="text-xl md:text-2xl font-light">{{title}}</h1></a>
|
|
</div>
|
|
<div class="mt-0 text-xs">
|
|
<p><span class="post-card-byline-date"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time> <span class="bull">•</span> {{reading_time}}</span></p>
|
|
</div>
|
|
{{#if authors}}
|
|
<div class="author-list text-xs ">
|
|
<div class="author-images">
|
|
{{#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>
|
|
<div class="author-names">
|
|
<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">
|
|
<p>{{excerpt words="30"}}</p>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
</div>
|