Ghost_Ruby_Theme/partials/author.hbs

30 lines
1.4 KiB
Handlebars
Raw Normal View History

2019-04-30 18:00:55 +03:00
{{#foreach authors}}
2019-05-27 16:34:56 +03:00
<section class="author u-shadow">
2019-04-30 18:00:55 +03:00
<div class="author-image-placeholder u-placeholder">
2019-05-03 18:11:39 +03:00
<img class="author-image lazyload u-object-fit" data-src="{{img_url profile_image size="xs"}}" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="{{name}}">
2019-04-30 18:00:55 +03:00
</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>
2019-04-30 18:00:55 +03:00
{{/if}}
{{#if facebook}}
<a class="author-social-item author-facebook" href="https://www.facebook.com/{{facebook}}" target="_blank">Facebook</a>
2019-04-30 18:00:55 +03:00
{{/if}}
{{#if twitter}}
<a class="author-social-item author-twitter" href="https://twitter.com/{{twitter}}" target="_blank">Twitter</a>
2019-04-30 18:00:55 +03:00
{{/if}}
<a class="author-social-item author-more" href={{url}}>More posts</a>
2019-04-30 18:00:55 +03:00
</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}}