Source code for my website.
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.
 
 
 
 
 

20 lines
871 B

  1. <section id="blog-page" class="container">
  2. <div class="blog-post-container">
  3. {{#if session.user}}
  4. <a class="blog-post-new-link" href="/blog/new">+ New Post</a>
  5. {{/if}}
  6. {{#each posts}}
  7. {{> post title=this.title slug=this.slug created_at=this.created_at description=this.description first_name=this.first_name last_name=this.last_name}}
  8. {{/each}}
  9. <nav class="blog-navigation">
  10. {{#if (compare page '>' 1)}}
  11. <a class="blog-navigation-link" href="/blog?page={{previousPage}}&perPage={{perPage}}">&lt; Previous</a>
  12. {{/if}}
  13. <span></span>
  14. {{#if (compare page '<' totalPages)}}
  15. <a class="blog-navigation-link" href="/blog?page={{nextPage}}&perPage={{perPage}}">Next &gt;</a>
  16. {{/if}}
  17. </nav>
  18. </div>
  19. </section>