Added tag page
[editorial.git] / post.hbs
index 93227953e73d67eb0f027cad13f3160a3c7259e8..7ab3c1847aa52fea6842aa5c5ae70985f58f4000 100644 (file)
--- a/post.hbs
+++ b/post.hbs
@@ -4,68 +4,82 @@ into the {body} of the default.hbs template --}}
 
 {{#post}}
 {{!-- Everything inside the #post tags pulls data from the post --}}
+<section>
 
-<main id="main">
+    <header class="main content">
+        <span class="date">{{date format="D MMMM YYYY"}} {{tags separator=" , " prefix=" ; tagged in: "}}</span>
+        <h1>{{title}}</h1>
 
-    <section class="post">
-
-        <header class="major">
-            <span class="date">{{date format="MMMM D, YYYY"}}</span>
-            <h1>{{title}}</h1>
-            {{#if custom_excerpt}}
-                <p class="content">{{custom_excerpt}}</p>
-            {{/if}}
-        </header>
-
-        {{#if feature_image}}
-        <div class="image main"><img src="{{img_url feature_image}}" alt="{{title}}" /></div>
+        {{#if custom_excerpt}}
+            <p class="content">{{custom_excerpt}}</p>
         {{/if}}
+    </header>
 
-        <div class="content">
-            {{content}}
-        </div>
+    {{#if feature_image}}
+    <div class="image main"><img src="{{img_url feature_image}}" alt="{{title}}" /></div>
+    {{/if}}
 
-        {{!-- Email subscribe form at the bottom of the page --}}
-        {{#if @labs.subscribers}}
-        <section class="subscribe-form">
-            <h3 class="subscribe-form-title">Subscribe to {{@blog.title}}</h3>
-            <p>Get the latest posts delivered right to your inbox</p>
-            {{subscribe_form placeholder="youremail@example.com"}}
-        </section>
-        {{/if}}
+    <div class="content">
+        {{content}}
+    </div>
 
-        <footer class="post-footer">
+    {{!-- Email subscribe form at the bottom of the page --}}
+    {{#if @labs.subscribers}}
+    <section class="subscribe-form">
+        <h3 class="subscribe-form-title">Subscribe to {{@site.title}}</h3>
+        <p>Get the latest posts delivered right to your inbox</p>
+        {{subscribe_form placeholder="youremail@example.com"}}
+    </section>
+    {{/if}}
 
-            <div class="authors">
-                {{#foreach authors}}
-                <a class="author-box" href="{{url}}">
-                    {{#if profile_image}}
-                    <img class="author-profile-image" src="{{profile_image}}" alt="{{name}}" />
+    <footer class="post-footer">
+
+        <div class="authors">
+            {{#foreach authors}}
+            <a class="author-box" href="{{url}}">
+                {{#if profile_image}}
+                <img class="author-profile-image" src="{{profile_image}}" alt="{{name}}" />
+                {{/if}}
+                <section class="author-box-content">
+                    <div class="author-box-label">Author</div>
+                    <h5 class="author-box-name">{{name}}</h5>
+                    {{#if bio}}
+                    <p>{{bio}}</p>
+                    {{else}}
+                    <p>Read more posts by this author.</p>
                     {{/if}}
-                    <section class="author-box-content">
-                        <div class="author-box-label">Author</div>
-                        <h5 class="author-box-name">{{name}}</h5>
-                        {{#if bio}}
-                        <p>{{bio}}</p>
-                        {{else}}
-                        <p>Read more posts by this author.</p>
-                        {{/if}}
-                    </section>
-                </a>
-                {{/foreach}}
-            </div>
+                </section>
+            </a>
+            {{/foreach}}
+        </div>
 
-        </footer>
+    </footer>
 
-        {{!--
-        <section class="post-full-comments">
-            If you want to embed comments, this is a good place to do it!
-        </section>
-        --}}
-    </section>
+    <section class="post-full-comments">
+        {{!-- If you want to embed comments, this is a good place to do it! --}}
+        <div id="disqus_thread"></div>
+        <script>
 
-</main>
+            /**
+            *  RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
+            *  LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
+            
+            var disqus_config = function () {
+            this.page.url = '{{url absolute="true"}}';     // PAGE_URL;  // Replace PAGE_URL with your page's canonical URL variable
+            this.page.identifier = 'ghost-{{comment_id}}'; // PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
+            };
+            
+            (function() { // DON'T EDIT BELOW THIS LINE
+            var d = document, s = d.createElement('script');
+            s.src = 'https://worknjae.disqus.com/embed.js';
+            s.setAttribute('data-timestamp', +new Date());
+            (d.head || d.body).appendChild(s);
+            })();
+        </script>
+        <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+    </section>
 
+</section>
 {{/post}}
 
 <script>
@@ -77,4 +91,4 @@ into the {body} of the default.hbs template --}}
         var ratio = width / height;
         container.style.flex = ratio + ' 1 0%';
     })
-</script>
\ No newline at end of file
+</script>