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> <h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
</header> </header>
<footer class="post-meta"> <footer class="post-meta">
{{#if author.profile_image}}<img class="author-thumb" src="{{author.profile_image}}" alt="Author image" nopin="nopin" />{{/if}} {{#primary_author}}
{{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 "}} {{tags prefix=" on "}}
</footer> </footer>
</article> </article>

4
post.hbs

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

Loading…
Cancel
Save