1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-05 02:17:32 +00:00
Yuika/author.hbs

52 lines
1.7 KiB
Handlebars
Raw Normal View History

2019-11-08 20:59:26 +00:00
{{!< default}}
{{#author}}
2019-11-11 17:10:20 +00:00
<div class="relative group index-header">
2019-11-11 17:19:35 +00:00
{{> header-background background=cover_image}} {{!--Special header-image.hbs partial to generate the background image--}}
2019-11-14 05:41:19 +00:00
<div class="w-full h-full opacity-50 bg-black">
2019-11-08 20:59:26 +00:00
</div>
</div>
2019-11-11 17:02:59 +00:00
<div class="absolute bottom-0 py-6 h-full left-0 right-0">
2019-11-12 17:51:01 +00:00
<div class="container mx-auto content-full h-full flex flex-col justify-end items-begin">
2020-11-11 19:54:23 +00:00
<div>
<span class="text-white text-sm">Author</span>
2019-11-08 20:59:26 +00:00
</div>
<div class="flex flex-row">
<div class="flex flex-col items-begin my-2">
2020-11-11 19:54:23 +00:00
<div class="flex flex-row items-center mb-2">
{{#if profile_image}}
<img class="author-image" src="{{profile_image}}" alt="{{name}}" />
{{/if}}
<h1 class="text-white text-2xl md:text-4xl ml-4">{{name}}</h1>
2019-11-08 20:59:26 +00:00
</div>
<div class="text-white">
{{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}}
</div>
<div class="text-white">
{{#if website}}
<span class=""><a href="{{website}}" target="_blank" rel="noopener">Website</a></span>
{{/if}}
{{#if twitter}}
<span class=""><a href="{{twitter_url}}" target="_blank" rel="noopener">Twitter</a></span>
{{/if}}
{{#if facebook}}
<span class=""><a href="{{facebook_url}}" target="_blank" rel="noopener">Facebook</a></span>
{{/if}}
</div>
</div>
</div>
<div class="text-white">
{{#if bio}}
<p>{{bio}}</p>
{{/if}}
</div>
2019-11-11 17:02:59 +00:00
</div>
2019-11-08 20:59:26 +00:00
</div>
</div>
{{/author}}
<div class="post-feed content w-full px-2">
2019-11-09 21:10:51 +00:00
{{#foreach posts}}
{{> "post-card"}}
{{/foreach}}
2019-11-08 20:59:26 +00:00
</div>