post.ejs 790 B

1234567891011121314151617181920212223
  1. <% if (page.image){ %>
  2. <%- partial('_partial/hero', { image : `/images/hero/blog/${page.image.feature}` }) %>
  3. <% } %>
  4. <div class="container up-spacer bottom-spacer-lg">
  5. <div class="row bottom-spacer">
  6. <div class="col-12">
  7. <h1><%= page.title %></h1>
  8. <i>
  9. By James Peret –
  10. <%= timeAgo(new Date(page.date)) %> in
  11. <% for (let i = 0; i < page.categories.data.length; i++) { %>
  12. <span class="badge badge-secondary"><%= page.categories.data[i].name %></span>
  13. <% } %>
  14. </i>
  15. <hr>
  16. <div class="article-content" itemprop="articleBody">
  17. <%- page.content %>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. <%- partial('_partial/about-author') %>
  23. <%- partial('_partial/next-post', { post : next_post(page, site.posts) }) %>