From ba10cb1516f5cde4fa787b2ca6957e70d04c12e4 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 10 Aug 2017 15:10:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=20Update=20to=20use=20Primary?= =?UTF-8?q?=20Tag=20syntax=20(#337)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- partials/post-card.hbs | 4 ++-- post.hbs | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/partials/post-card.hbs b/partials/post-card.hbs index ab48444..bc3ee56 100644 --- a/partials/post-card.hbs +++ b/partials/post-card.hbs @@ -7,8 +7,8 @@
- {{#if tags}} - {{tags.[0].name}} + {{#if primary_tag}} + {{primary_tag.name}} {{/if}}

{{title}}

diff --git a/post.hbs b/post.hbs index eaf6916..771e55c 100644 --- a/post.hbs +++ b/post.hbs @@ -20,9 +20,9 @@ into the {body} of the default.hbs template --}}
- {{#if tags}} - / {{tags.[0].name}} - {{/if}} + {{#primary_tag}} + / {{name}} + {{/primary_tag}}

{{title}}

@@ -102,11 +102,11 @@ into the {body} of the default.hbs template --}}