From c09023b4da7859149f167084583180d538d4042e Mon Sep 17 00:00:00 2001 From: John O'Nolan <john@onolan.org> Date: Wed, 6 Nov 2019 10:21:23 +0700 Subject: [PATCH] Tweak post layout --- post.hbs | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/post.hbs b/post.hbs index d3f28dda..0214180b 100644 --- a/post.hbs +++ b/post.hbs @@ -21,32 +21,24 @@ {{content}} </div> - {{!-- Email subscribe form at the bottom of the page --}} - {{#if @labs.members}} - {{> subscribe-form}} - {{/if}} - <footer class="gh-post-footer"> <div class="gh-post-authors"> - Written by - {{#foreach authors}} - <a href="{{url}}">{{name}}</a> - {{/foreach}} + Written by {{#foreach authors}}<a href="{{url}}">{{name}}</a>{{/foreach}} </div> - </footer> + {{!-- + <section class="gh-post-comments"> + If you want to embed comments, this is a good place to do it! + </section> + --}} - {{!-- - <section class="gh-post-comments"> - If you want to embed comments, this is a good place to do it! - </section> - --}} + </footer> </article> {{/post}} -{{!-- The #contentFor helper here will send everything in it to the matching #block helper in default.hbs --}} + {{#contentFor "scripts"}} <script> var images = document.querySelectorAll('.kg-gallery-image img'); @@ -59,3 +51,5 @@ images.forEach(function (image) { }) </script> {{/contentFor}} + +{{!-- The #contentFor helper sends everything in it to the matching #block helper in default.hbs --}} \ No newline at end of file