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

57 lines
2.0 KiB
Handlebars
Raw Normal View History

2021-04-14 08:24:27 +00:00
{{!< default}} {{#author}} {{> header-background background=cover_image}} <div class="page-header">
<div class="page-header__background responsive-header-img">
<div class="page-header__overlay"></div>
2019-11-08 20:59:26 +00:00
</div>
2021-04-14 08:24:27 +00:00
<div class="page-header__contents">
<div class="post-header container mx-auto main">
2021-04-22 13:34:59 +00:00
<p class="page-header__text">
2021-04-14 08:24:27 +00:00
<span class="post-header__tag-name">Author</span>
</p>
2021-04-22 13:34:59 +00:00
<div class="post-header__heading post-header__heading--tag">
2021-04-14 08:24:27 +00:00
{{#if profile_image}}
<style>
.author-image {
background-image: url('{{profile_image}}');
background-size: cover;
background-position: center;
}
</style>
2021-04-22 13:34:59 +00:00
<span class="post-header__heading--tag-color author-image"></span>
2021-04-14 08:24:27 +00:00
{{else}}
2021-04-22 13:34:59 +00:00
<span class="post-header__heading--tag-color"></span>
2020-11-11 19:54:23 +00:00
{{/if}}
2021-04-22 13:34:59 +00:00
<h1 class="post-header__heading--tag-text">
2021-04-14 08:24:27 +00:00
{{name}}
</h1>
2019-11-08 20:59:26 +00:00
</div>
2021-04-22 13:34:59 +00:00
<p class="page-header__text">
2019-11-08 20:59:26 +00:00
{{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}}
2021-04-14 08:24:27 +00:00
</p>
2021-04-22 13:34:59 +00:00
<p class="page-header__text">
2019-11-08 20:59:26 +00:00
{{#if website}}
2021-04-22 13:34:59 +00:00
<span class=""><a class="post-header__social" href="{{website}}" target="_blank"
rel="noopener">Website</a></span>
2019-11-08 20:59:26 +00:00
{{/if}}
{{#if twitter}}
2021-04-22 13:34:59 +00:00
<span class=""><a class="post-header__social" href="{{twitter_url}}" target="_blank"
rel="noopener">Twitter</a></span>
2019-11-08 20:59:26 +00:00
{{/if}}
{{#if facebook}}
2021-04-22 13:34:59 +00:00
<span class=""><a class="post-header__social" href="{{facebook_url}}" target="_blank"
rel="noopener">Facebook</a></span>
2019-11-08 20:59:26 +00:00
{{/if}}
2021-04-14 08:24:27 +00:00
</p>
{{#if bio}}
2021-04-22 13:34:59 +00:00
<p class="page-header__text">{{bio}}</p>
2021-04-14 08:24:27 +00:00
{{/if}}
</div>
2019-11-08 20:59:26 +00:00
</div>
</div>
2021-04-14 08:24:27 +00:00
{{/author}}
<main class="post-list container mx-auto">
{{#foreach posts}}
2019-11-09 21:10:51 +00:00
{{> "post-card"}}
2021-04-14 08:24:27 +00:00
{{/foreach}}
</main>
{{#contentFor "scripts"}}
{{/contentFor}}