Refactoring code, cleaning up some SASS, styling author and tag page, adding optional...
[ghost-theme-willow.git] / index.hbs
index c3c3a0b85fb481a7ffe555ebbc953f8c65551642..a11bbc4d291a19aeb14e9b01d8eb4b0f1acf903f 100644 (file)
--- a/index.hbs
+++ b/index.hbs
@@ -1,29 +1,3 @@
 {{!< default}}
-<div class="c-post-list">
-    {{#foreach posts}}
-        <article class="c-post-list__item {{post_class}}">
-            <a class="c-post-list__image" href="{{url}}" title="{{title}}">
-                <img class="c-post-list__image__img" src="{{image}}" alt="{{title}}"/>
-            </a>
-
-            <h2 class="c-post-list__title">
-                <a href="{{url}}" title="{{title}}">{{title}}</a>
-            </h2>
-
-            <div class="c-post-list__meta">
-                {{date format="MMMM DD, YYYY"}}
-
-                {{#if tags}}
-                    in
-                    <span class="c-post-list__meta__tags">
-                        {{#foreach tags}}
-                            <a href="{{url}}" title="{{name}}">#{{name}}</a>
-                        {{/foreach}}
-                    </span>
-                {{/if}}
-            </div>
-        </article>
-    {{/foreach}}
-</div>
-
+{{> "post-list"}}
 {{pagination}}
\ No newline at end of file