Skip to content

Commit

Permalink
Ghost 2.0 compatability: author --> primary__author
Browse files Browse the repository at this point in the history
  • Loading branch information
curiositry committed Aug 20, 2018
1 parent c67baf1 commit c57e237
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions partials/loop.hbs
Expand Up @@ -45,8 +45,8 @@
<p>{{excerpt words="30"}} <span style="color:#ccc;">…</span><a class="read-more" href="{{url}}"> <span>&raquo;</span> </a></p>
</div>
<footer class="post-meta">
<!-- {{#if author.profile_image}}<img class="author-thumb" src="{{author.profile_image}}" alt="Author image" nopin="nopin" />{{/if}}-->
By {{author}}
<!-- {{#if primary_author.profile_image}}<img class="author-thumb" src="{{primary_author.profile_image}}" alt="Author image" nopin="nopin" />{{/if}}-->
By {{primary_author}}
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="MMM Do YYYY"}}</time>
{{tags prefix=" &bull; "}}
</footer>
Expand Down
6 changes: 3 additions & 3 deletions post.hbs
Expand Up @@ -14,7 +14,7 @@
<header class="post-header">
<h1 class="post-title typl8-gamma">{{title}}</h1>
<section class="post-meta">
By {{#author}}<a href="{{url}}">{{name}}</a>{{/author}}
By {{#primary_author}}<a href="{{url}}">{{name}}</a>{{/primary_author}}
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}"> {{date format="MMM Do YYYY"}}</time>
<span class="post-tags">{{tags prefix="Tags: "}}</span>
</section>
Expand All @@ -27,7 +27,7 @@
<footer class="post-footer">

{{! Everything inside the #author tags pulls data from the author }}
{{#author}}
{{#primary_author}}

{{#if profile_image}}
<figure class="author-image">
Expand All @@ -51,7 +51,7 @@
</div>
</section>

{{/author}}
{{/primary_author}}

<section class="share">
<h4>Share this post</h4>
Expand Down

0 comments on commit c57e237

Please sign in to comment.