mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
7f1d3ebc07
- move all test files from core/test to test/ - updated all imports and other references - all code inside of core/ is then application code - tests are correctly at the root level - consistent with other repos/projects Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
43 lines
1.5 KiB
Handlebars
43 lines
1.5 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">
|
|
|
|
<ul class="author-list">
|
|
{{#foreach authors}}
|
|
<li class="author-list-item">
|
|
|
|
<div class="author-name-tooltip">
|
|
{{name}}
|
|
</div>
|
|
|
|
{{#if profile_image}}
|
|
<a href="{{url}}" class="static-avatar"><img class="author-profile-image" src="{{profile_image}}" alt="{{name}}" /></a>
|
|
{{else}}
|
|
<a href="{{url}}" class="static-avatar author-profile-image">{{> "icons/avatar"}}</a>
|
|
{{/if}}
|
|
</li>
|
|
{{/foreach}}
|
|
</ul>
|
|
|
|
<span class="reading-time">{{reading_time}}</span>
|
|
|
|
</footer>
|
|
</div>
|
|
</article>
|