📝 Samuel's new personal website https://blog.samuel.domains/
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.
 
 
 
 

35 lines
1.1 KiB

  1. ---
  2. layout: default
  3. ---
  4. <ul class="posts">
  5. {%- assign posts = paginator.posts | where: 'draft', false -%}
  6. {% for post in posts %}
  7. <li><a href="{{ post.url }}" title="{{ post.title | escape }}">{{ post.title }}</a><span class="dates">{{ post.date | date: "%e %B %Y" }}</span></li>
  8. {% endfor %}
  9. </ul>
  10. <hr>
  11. <ul class="pager">
  12. {% if paginator.total_pages > 1 %}
  13. {% if paginator.previous_page %}
  14. <li>
  15. <i class="fas fa-backward"></i><a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
  16. </li>
  17. {% endif %}
  18. {% if paginator.page_trail %}
  19. {% for trail in paginator.page_trail %}
  20. <li {% if page.url == trail.path %}class="selected"{% endif %}>
  21. <a href="{% if page.url == trail.path %}#{% else %}{{ trail.path | prepend: site.baseurl }}{% endif %}" title="{{ trail.title }}">{{ trail.num }}</a>
  22. </li>
  23. {% endfor %}
  24. {% endif %}
  25. {% if paginator.next_page %}
  26. <li>
  27. <a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a><i class="fas fa-forward" style="margin-left: 5px;"></i>
  28. </li>
  29. {% endif %}
  30. {% endif %}
  31. </ul>