Ghost_Ruby_Theme/partials/author.hbs
2020-09-24 10:21:50 +08:00

30 lines
1.4 KiB
Handlebars

{{#foreach authors}}
<section class="author u-shadow">
<div class="author-image-placeholder u-placeholder">
<img class="author-image lazyload u-object-fit" data-src="{{img_url profile_image size="xs"}}" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="{{name}}">
</div>
<div class="author-wrapper">
<header class="author-header">
<div class="author-header-wrapper">
<h4 class="author-name">{{name}}</h4>
<div class="author-social">
{{#if website}}
<a class="author-social-item author-website" href="{{website}}" target="_blank">Website</a>
{{/if}}
{{#if facebook}}
<a class="author-social-item author-facebook" href="https://www.facebook.com/{{facebook}}" target="_blank">Facebook</a>
{{/if}}
{{#if twitter}}
<a class="author-social-item author-twitter" href="https://twitter.com/{{twitter}}" target="_blank">Twitter</a>
{{/if}}
<a class="author-social-item author-more" href={{url}}>More posts</a>
</div>
</div>
</header>
<div class="author-bio">{{bio}}</div>
{{#if location}}
<div class="author-location"><i class="author-location-icon icon icon-map-marker"></i> {{location}}</div>
{{/if}}
</div>
</section>
{{/foreach}}