mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-11-14 17:26:36 +00:00
ba10cb1516
refs TryGhost/Ghost#8668 - In Ghost 1.2.0 we introduce primary_tag as a calculated property - Casper can be updated to use this for clarity
27 lines
1.1 KiB
Handlebars
27 lines
1.1 KiB
Handlebars
<article class="post-card {{post_class}}{{#unless feature_image}} no-image{{/unless}}">
|
|
{{#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">
|
|
{{#if primary_tag}}
|
|
<span class="post-card-tags">{{primary_tag.name}}</span>
|
|
{{/if}}
|
|
<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">
|
|
{{#if author.profile_image}}
|
|
<img class="author-profile-image" src="{{author.profile_image}}" alt="{{author.name}}" />
|
|
{{/if}}
|
|
<span class="post-card-author">{{author}}</span>
|
|
</footer>
|
|
</div>
|
|
</article>
|