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.
 
 
 

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