🎨 Update to use Primary Tag syntax (#337)

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
This commit is contained in:
Hannah Wolfe
2017-08-10 15:10:17 +01:00
committed by Katharina Irrgang
parent d7ca6fd2f6
commit ba10cb1516
2 changed files with 12 additions and 10 deletions

View File

@ -7,8 +7,8 @@
<div class="post-card-content">
<a class="post-card-content-link" href="{{url}}">
<header class="post-card-header">
{{#if tags}}
<span class="post-card-tags">{{tags.[0].name}}</span>
{{#if primary_tag}}
<span class="post-card-tags">{{primary_tag.name}}</span>
{{/if}}
<h2 class="post-card-title">{{title}}</h2>
</header>