Building a new theme for the Ghost CMS for use on https://chrg.nl

author.hbs 1.5KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {{!< default}}
  2. {{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
  3. {{!-- The big featured header --}}
  4. {{> "header" }}
  5. {{!-- Everything inside the #author tags pulls data from the author --}}
  6. {{#author}}
  7. <header class="main-header author-head {{#if cover_image}}" style="background-image: url({{cover_image}}){{else}}no-cover{{/if}}">
  8. </header>
  9. <section class="author-profile inner">
  10. {{#if profile_image}}
  11. <figure class="author-image {{#if cover_image}}author-image-cover{{/if}}">
  12. <div class="img" style="background-image: url({{profile_image}})"><span class="hidden">{{name}}'s Picture</span></div>
  13. </figure>
  14. {{/if}}
  15. <h1 class="author-title">{{name}}</h1>
  16. {{#if bio}}
  17. <h2 class="author-bio">{{bio}}</h2>
  18. {{/if}}
  19. <div class="author-meta">
  20. {{#if location}}<span class="author-location icon-location">{{location}}</span>{{/if}}
  21. {{#if website}}<span class="author-link icon-link"><a href="{{website}}">{{website}}</a></span>{{/if}}
  22. <span class="author-stats"><i class="icon-stats"></i> {{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}}</span>
  23. </div>
  24. </section>
  25. {{/author}}
  26. {{!-- The main content area on the homepage --}}
  27. <main class="content" role="main">
  28. {{!-- The tag below includes the post loop - partials/loop.hbs --}}
  29. {{> "loop"}}
  30. </main>