Browse Source

hbs: author -> primary_author

pull/5/head
Denis Efremov 6 years ago
parent
commit
f612334759
  1. 6
      partials/loop.hbs
  2. 4
      post.hbs

6
partials/loop.hbs

@ -6,8 +6,10 @@
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
</header>
<footer class="post-meta">
{{#if author.profile_image}}<img class="author-thumb" src="{{author.profile_image}}" alt="Author image" nopin="nopin" />{{/if}}
{{author}}
{{#primary_author}}
{{#if profile_image}}<img class="author-thumb" src="{{profile_image}}" alt="Author image" nopin="nopin" />{{/if}}
<a href="{{url}}" class="author-link-name">{{name}}</a>
{{/primary_author}}
{{tags prefix=" on "}}
</footer>
</article>

4
post.hbs

@ -83,7 +83,7 @@
</div>
{{! Everything inside the #author tags pulls data from the author }}
{{#author}}
{{#primary_author}}
<section class="author-info">
<div class="row">
<section class="post-author small-12 columns">
@ -103,7 +103,7 @@
</section>
</div>
</section>
{{/author}}
{{/primary_author}}
<section class="disqus">
{{> disqus}}

Loading…
Cancel
Save