Added tag page
[editorial.git] / partials / tag-card.hbs
diff --git a/partials/tag-card.hbs b/partials/tag-card.hbs
new file mode 100644 (file)
index 0000000..5ccfca8
--- /dev/null
@@ -0,0 +1,18 @@
+<article class="post-card {{post_class}}{{#unless feature_image}} no-image{{/unless}}">
+    {{#if feature_image}}
+        <a class="post-card-image-link" href="{{url}}">
+            <div class="post-card-image" style="background-image: url({{feature_image}})"></div>
+        </a>
+    {{/if}}
+    <div class="post-card-content">
+        <a class="post-card-content-link" href="{{url}}">
+            <header class="post-card-header">
+                <h2 class="post-card-title">{{name}}</h2>
+            </header>
+            <section class="post-card-excerpt">
+                <p>{{description}}</p>
+                <p>A collection of {{plural count.posts empty='posts' singular='% post' plural='% posts'}}</p>
+            </section>
+        </a>
+    </div>
+</article>