Permalink
Browse files

Moved posts loop into 'loop' partial

  • Loading branch information...
roryg committed Aug 12, 2014
1 parent fc1e4b1 commit 46b64ae815f76e51ca2ec480eb5505785d6ba876
Showing with 16 additions and 39 deletions.
  1. +1 −13 author.hbs
  2. +1 −13 index.hbs
  3. +13 −0 partials/loop.hbs
  4. +1 −13 tag.hbs
View
@@ -23,19 +23,7 @@
</section>
<ol class="post-list">
{{#foreach posts}}
<li class="post-stub {{post_class}}" >
<a class="js-ajax-link" title="{{title}} | {{@blog.title}}" href="{{url}}">
<h4 class="post-stub-title">{{title}}</h4>
<time class="post-stub-date" datetime="{{published_at}}">Published {{date format="MMMM Do YYYY"}}</time>
{{#if featured}}
<span class="post-stub-tag">Featured</span>
{{/if}}
</a>
</li>
{{/foreach}}
{{> loop}}
</ol>
<div class="post-navigation">
View
@@ -10,19 +10,7 @@
<div id="post-index" class="container">
<ol class="post-list">
{{#foreach posts}}
<li class="post-stub {{post_class}}" >
<a class="js-ajax-link" title="{{title}} | {{@blog.title}}" href="{{url}}">
<h4 class="post-stub-title">{{title}}</h4>
<time class="post-stub-date" datetime="{{published_at}}">Published {{date format="MMMM Do YYYY"}}</time>
{{#if featured}}
<span class="post-stub-tag">Featured</span>
{{/if}}
</a>
</li>
{{/foreach}}
{{> loop}}
</ol>
<div class="post-navigation">
View
@@ -0,0 +1,13 @@
{{#foreach posts}}
<li class="post-stub {{post_class}}" >
<a class="js-ajax-link" title="{{title}} | {{@blog.title}}" href="{{url}}">
<h4 class="post-stub-title">{{title}}</h4>
<time class="post-stub-date" datetime="{{published_at}}">Published {{date format="MMMM Do YYYY"}}</time>
{{#if featured}}
<span class="post-stub-tag">Featured</span>
{{/if}}
</a>
</li>
{{/foreach}}
View
14 tag.hbs
@@ -4,19 +4,7 @@
<h1 class="page-title">Posts tagged: {{tag.name}}</h1>
<ol class="post-list">
{{#foreach posts}}
<li class="post-stub {{post_class}}" >
<a class="js-ajax-link" title="{{title}} | {{@blog.title}}" href="{{url}}">
<h4 class="post-stub-title">{{title}}</h4>
<time class="post-stub-date" datetime="{{published_at}}">Published {{date format="MMMM Do YYYY"}}</time>
{{#if featured}}
<span class="post-stub-tag">Featured</span>
{{/if}}
</a>
</li>
{{/foreach}}
{{> loop}}
</ol>
<div class="post-navigation">

0 comments on commit 46b64ae

Please sign in to comment.