Refactoring of styles - BEM + ITCSS, removed Disqus.
[ghost-theme-willow.git] / index.hbs
index 2cb6529e46033f754df173a2dec9c3ec4c084295..c3c3a0b85fb481a7ffe555ebbc953f8c65551642 100644 (file)
--- a/index.hbs
+++ b/index.hbs
@@ -1,4 +1,29 @@
 {{!< default}}
-<div class="content-page">
-    {{> "articles"}}
-</div>
\ No newline at end of file
+<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>
+
+{{pagination}}
\ No newline at end of file