You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2KB

  1. {{!< default}}
  2. {{!-- The tag above means: insert everything in this file
  3. into the {body} of the default.hbs template --}}
  4. {{!-- The big featured header, it uses blog cover image as a BG if available --}}
  5. <header class="site-header outer">
  6. <div class="inner">
  7. {{> "site-nav"}}
  8. </div>
  9. </header>
  10. {{!-- Everything inside the #post tags pulls data from the post --}}
  11. {{#post}}
  12. <main id="site-main" class="site-main outer" role="main">
  13. <div class="inner">
  14. <article class="post-full {{post_class}} {{#unless feature_image}}no-image{{/unless}}">
  15. <header class="post-full-header">
  16. <h1 class="post-full-title">{{title}}</h1>
  17. </header>
  18. {{#if feature_image}}
  19. <img class="post-header-image" src="{{feature_image}}">
  20. {{/if}}
  21. <section class="post-full-content">
  22. {{content}}
  23. </section>
  24. </article>
  25. </div>
  26. </main>
  27. {{/post}}
  28. {{!-- The #contentFor helper here will send everything inside it up to the matching #block helper found in default.hbs --}}
  29. {{#contentFor "scripts"}}
  30. <script>
  31. $(function() {
  32. var $postContent = $(".post-full-content");
  33. $postContent.fitVids();
  34. });
  35. </script>
  36. {{/contentFor}}