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.
 
 
 

53 lines
2.1 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 {{#if @blog.cover_image}}" style="background-image: url({{@blog.cover_image}}){{else}}no-cover{{/if}}">
  6. <div class="inner">
  7. <div class="site-header-content">
  8. <h1 class="site-title">
  9. {{#if @blog.logo}}
  10. <img class="site-logo" src="{{@blog.logo}}" alt="{{@blog.title}}" />
  11. {{else}}
  12. {{@blog.title}}
  13. {{/if}}
  14. </h1>
  15. <h2 class="site-description">{{@blog.description}}</h2>
  16. </div>
  17. <nav class="site-nav">
  18. <div class="site-nav-left">
  19. {{#if @blog.navigation}}
  20. {{!-- The blog navigation links from /ghost/settings/design --}}
  21. {{navigation}}
  22. {{/if}}
  23. </div>
  24. <div class="site-nav-right">
  25. <div class="social-links">
  26. {{#if @blog.facebook}}
  27. <a class="social-link social-link-fb" href="{{facebook_url}}">{{> "icons/facebook"}}</a>
  28. {{/if}}
  29. {{#if @blog.twitter}}
  30. <a class="social-link social-link-tw" href="{{twitter_url}}">{{> "icons/twitter"}}</a>
  31. {{/if}}
  32. </div>
  33. {{#if @labs.subscribers}}
  34. <a class="subscribe-button" href="{{@blog.url}}/subscribe/">Subscribe</a>
  35. {{else}}
  36. <a class="rss-button" href="http://cloud.feedly.com/#subscription/feed/{{@blog.url}}/rss/" target="_blank">{{> "icons/rss"}}</a>
  37. {{/if}}
  38. </div>
  39. </nav>
  40. </div>
  41. </header>
  42. {{!-- The main content area --}}
  43. <main id="site-main" class="site-main outer" role="main">
  44. <div class="inner">
  45. {{!-- The tag below includes the post loop - partials/loop.hbs --}}
  46. {{> "loop"}}
  47. </div>
  48. </main>