Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
Extract post-author into a partial
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Dec 30, 2015
1 parent 71db207 commit 430f4f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions partials/post-author.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<span class="post author">
<img src="{{author.image}}" class="rounded" alt="profile image for {{author.name}}"/> by {{author.name}}
</span>
4 changes: 1 addition & 3 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
<time datetime="{{date format="DD MMM YYYY"}}">{{date format="DD MMM YYYY"}}</time>
<span class="post tags">{{tags prefix="in " separator=" "}}</span>

{{!-- <span class="post author">
<img src="{{author.image}}" class="rounded" alt="profile image for {{author.name}}"/> by {{author.name}}
</span> --}}
{{!> post-author}}

<span class="post reading-time"> ~ <span></span> read.</span>
</div>
Expand Down

0 comments on commit 430f4f3

Please sign in to comment.