Added tag page
[editorial.git] / page-tag.hbs
diff --git a/page-tag.hbs b/page-tag.hbs
new file mode 100644 (file)
index 0000000..fcd415e
--- /dev/null
@@ -0,0 +1,56 @@
+{{!< default}}
+{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
+
+{{!-- The big featured header, it uses blog cover image as a BG if available --}}
+{{#post}}
+
+<section>
+
+
+    <header class="main content">
+        <h1>{{title}}</h1>
+    </header>
+
+    {{#if feature_image}}
+    <div class="image main"><img src="{{img_url feature_image}}" alt="{{title}}" /></div>
+    {{/if}}
+
+    <div class="content">
+        {{#get 'tags' limit='all' include='count.posts' order='count.posts desc'}}
+        {{#foreach tags}}
+            {{!-- The tag below includes the markup for each tag - partials/tag-card.hbs --}}
+            {{> "tag-card"}}
+        {{/foreach}}
+        {{/get}}
+    </div>
+
+</section>
+
+
+
+{{!-- The main content area --}}
+{{!--
+<main id="site-main" class="site-main outer">
+    <style scoped>
+    .inner-page-tags {
+        margin-top: inherit;
+    }
+
+    @media (min-width: 900px) {
+      .inner-page-tags {
+        margin-top: -8vw;
+      }
+    }
+    </style>
+    <div class="inner inner-page-tags">
+        <div class="post-feed">
+            {{#get 'tags' limit='all' include='count.posts' order='count.posts desc'}}
+            {{#foreach tags}}
+                {{> "tag-card"}}
+            {{/foreach}}
+            {{/get}}
+        </div>
+    </div>
+</main>
+--}}
+{{/post}}