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.
 
 
 

43 rivejä
1.5 KiB

  1. <article class="post-card {{post_class}}{{#unless feature_image}} no-image{{/unless}}">
  2. {{#if feature_image}}
  3. <a class="post-card-image-link" href="{{url}}">
  4. <div class="post-card-image" style="background-image: url({{feature_image}})"></div>
  5. </a>
  6. {{/if}}
  7. <div class="post-card-content">
  8. <a class="post-card-content-link" href="{{url}}">
  9. <header class="post-card-header">
  10. {{#if primary_tag}}
  11. <span class="post-card-tags">{{primary_tag.name}}</span>
  12. {{/if}}
  13. <h2 class="post-card-title">{{title}}</h2>
  14. </header>
  15. <section class="post-card-excerpt">
  16. <p>{{excerpt words="33"}}</p>
  17. </section>
  18. </a>
  19. <footer class="post-card-meta">
  20. <ul class="author-list">
  21. {{#foreach authors}}
  22. <li class="author-list-item">
  23. <div class="author-name-tooltip">
  24. {{name}}
  25. </div>
  26. {{#if profile_image}}
  27. <a href="{{url}}" class="static-avatar"><img class="author-profile-image" src="{{profile_image}}" alt="{{name}}" /></a>
  28. {{else}}
  29. <a href="{{url}}" class="static-avatar author-profile-image">{{> "icons/avatar"}}</a>
  30. {{/if}}
  31. </li>
  32. {{/foreach}}
  33. </ul>
  34. <span class="reading-time">{{reading_time}}</span>
  35. </footer>
  36. </div>
  37. </article>