mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 17:32:15 +03:00
1c5e9d9ed3
no issue - use latest casper in test fixtures - never ever use the root content folder for tests - if we start/fork Ghost for the tests, we use a tmp folder - this change is required to for an upcoming PR (#9029) - i've added a TODO to create a helper fn for stopping the ghost server, so we can cleanup the tmp folder * Care about TODO's in our channels spec - add the 1.4 compatible casper theme to fixtures - so as soon as you start Ghost, the test env will provide the content folder in /tmp something with the activated latest default casper and the 1.4 compatible old casper - there are tests which tests different logici e.g. pagination - therefor we need a different theme, we are simply using our 1.4 casper
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>
|