weflock/partials/loop.hbs

37 lines
1.4 KiB
Handlebars
Raw Normal View History

2017-05-15 16:03:47 -04:00
<div class="post-feed">
{{!-- This is the post loop - each post will be output using this markup --}}
2017-05-31 14:09:50 -04:00
{{!-- <aside class="post-card number-3">
<h1>SUBSCRIBE</h1>
</aside> --}}
2017-05-15 16:03:47 -04:00
{{#foreach posts}}
<article class="post-card {{post_class}}">
{{#if feature_image}}
<a class="post-card-image-link" href="{{url}}">
<div class="post-card-image" style="background-image: url({{feature_image}})"></div>
</a>
{{/if}}
<div class="post-card-content">
<a class="post-card-content-link" href="{{url}}">
<header class="post-card-header">
<h2 class="post-card-title">{{title}}</h2>
</header>
<section class="post-card-excerpt">
<p>{{excerpt words="33"}}</p>
</section>
</a>
<footer class="post-card-meta">
2017-05-16 05:26:08 -04:00
{{#if author.profile_image}}
<img class="author-profile-image" src="{{author.profile_image}}" alt="{{author.name}}" nopin="nopin" />
{{/if}}
<span class="post-card-author">{{author}}</span>
{{#if tags}}
2017-05-31 14:09:50 -04:00
<span class="poar-card-tags"> in <a href="{{@blog.url}}tag/{{tags.[0].slug}}">{{tags.[0].name}}</a></span>
2017-05-16 05:26:08 -04:00
{{/if}}
2017-05-15 16:03:47 -04:00
</footer>
</div>
</article>
{{/foreach}}
</div>