Custom Ghost theme for my blog, based on Casper https://www.geber.ga
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.
 
 
 

49 lines
1.3 KiB

  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. <figure class="post-full-image" style="background-image: url({{feature_image}})">
  20. </figure>
  21. {{/if}}
  22. <section class="post-full-content">
  23. {{content}}
  24. </section>
  25. </article>
  26. </div>
  27. </main>
  28. {{/post}}
  29. {{!-- The #contentFor helper here will send everything inside it up to the matching #block helper found in default.hbs --}}
  30. {{#contentFor "scripts"}}
  31. <script>
  32. $(function() {
  33. var $postContent = $(".post-full-content");
  34. $postContent.fitVids();
  35. });
  36. </script>
  37. {{/contentFor}}