2014-07-21 12:45:34 +00:00
|
|
|
{{!< default}}
|
2016-05-08 08:50:20 +00:00
|
|
|
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
|
2014-07-21 12:45:34 +00:00
|
|
|
|
2022-05-16 04:08:19 +00:00
|
|
|
<main id="site-main" class="site-main outer">
|
2022-12-08 04:50:24 +00:00
|
|
|
<div class="inner posts">
|
2021-03-04 01:22:45 +00:00
|
|
|
|
2022-12-08 04:50:24 +00:00
|
|
|
<div class="post-feed">
|
2021-03-04 22:22:45 +00:00
|
|
|
|
2022-12-08 04:50:24 +00:00
|
|
|
{{#author}}
|
|
|
|
<section class="post-card post-card-large">
|
2021-03-04 22:22:45 +00:00
|
|
|
|
2023-01-19 08:51:08 +00:00
|
|
|
{{#if cover_image}}
|
2022-12-08 04:50:24 +00:00
|
|
|
<div class="post-card-image-link">
|
|
|
|
{{!-- This is a responsive image, it loads different sizes depending on device
|
|
|
|
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
|
|
|
|
<img class="post-card-image"
|
2023-01-19 08:51:08 +00:00
|
|
|
srcset="{{img_url cover_image size="s"}} 300w,
|
|
|
|
{{img_url cover_image size="m"}} 600w,
|
|
|
|
{{img_url cover_image size="l"}} 1000w,
|
|
|
|
{{img_url cover_image size="xl"}} 2000w"
|
2022-12-08 04:50:24 +00:00
|
|
|
sizes="(max-width: 1000px) 400px, 800px"
|
2023-01-19 08:51:08 +00:00
|
|
|
src="{{img_url cover_image size="m"}}"
|
2022-12-08 04:50:24 +00:00
|
|
|
alt="{{title}}"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-05-16 04:08:19 +00:00
|
|
|
{{/if}}
|
2021-03-04 22:22:45 +00:00
|
|
|
|
2022-12-08 04:50:24 +00:00
|
|
|
<div class="post-card-content">
|
|
|
|
<div class="post-card-content-link">
|
2021-03-04 22:22:45 +00:00
|
|
|
|
2022-12-08 04:50:24 +00:00
|
|
|
{{#if profile_image}}
|
|
|
|
<img class="author-profile-pic" src="{{profile_image}}" alt="{{name}}" />
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<header class="post-card-header">
|
|
|
|
<h2 class="post-card-title">{{name}}</h2>
|
|
|
|
</header>
|
2022-05-16 04:08:19 +00:00
|
|
|
|
2022-12-08 04:50:24 +00:00
|
|
|
{{#if bio}}
|
|
|
|
<div class="post-card-excerpt">{{bio}}</div>
|
2022-05-16 04:08:19 +00:00
|
|
|
{{/if}}
|
2022-12-08 04:50:24 +00:00
|
|
|
|
|
|
|
<footer class="author-profile-footer">
|
|
|
|
{{#if location}}
|
|
|
|
<div class="author-profile-location">{{location}}</div>
|
2021-03-04 01:22:45 +00:00
|
|
|
{{/if}}
|
2022-12-08 04:50:24 +00:00
|
|
|
<div class="author-profile-meta">
|
|
|
|
{{#if website}}
|
|
|
|
<a class="author-profile-social-link" href="{{website}}" target="_blank" rel="noopener">{{website}}</a>
|
|
|
|
{{/if}}
|
|
|
|
{{#if twitter}}
|
|
|
|
<a class="author-profile-social-link" href="{{twitter_url}}" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
|
|
|
|
{{/if}}
|
|
|
|
{{#if facebook}}
|
|
|
|
<a class="author-profile-social-link" href="{{facebook_url}}" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-04 01:22:45 +00:00
|
|
|
|
2022-12-08 04:50:24 +00:00
|
|
|
</section>
|
|
|
|
{{/author}}
|
2014-07-21 12:45:34 +00:00
|
|
|
|
2022-12-08 04:50:24 +00:00
|
|
|
{{#foreach posts}}
|
|
|
|
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
|
|
|
|
{{> "post-card"}}
|
|
|
|
{{/foreach}}
|
2017-06-16 12:16:22 +00:00
|
|
|
|
2022-12-08 04:50:24 +00:00
|
|
|
</div>
|
2017-06-16 12:16:22 +00:00
|
|
|
|
2022-12-08 04:50:24 +00:00
|
|
|
{{pagination}}
|
|
|
|
|
2022-05-16 04:08:19 +00:00
|
|
|
</div>
|
|
|
|
</main>
|