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.
 
 
 

28 lines
1.2 KiB

  1. <div class="post-feed">
  2. {{!-- This is the post loop - each post will be output using this markup --}}
  3. {{#foreach posts}}
  4. <article class="post-card {{post_class}}">
  5. {{#if feature_image}}
  6. <a class="post-card-image-link" href="{{url}}">
  7. <div class="post-card-image" style="background-image: url({{feature_image}})"></div>
  8. </a>
  9. {{/if}}
  10. <div class="post-card-content">
  11. <a class="post-card-content-link" href="{{url}}">
  12. <header class="post-card-header">
  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. {{#if author_image}}<img class="author-thumb" src="{{author_image}}" alt="{{author.name}}" nopin="nopin" />{{/if}}
  21. {{author}}
  22. <time class="post-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMMM YYYY"}}</time>
  23. </footer>
  24. </div>
  25. </article>
  26. {{/foreach}}
  27. </div>