index.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ---
  2. layout: page
  3. title: Bryan Roessler's Homepage
  4. subtitle: Ordo ab chao
  5. use-site-title: false
  6. ---
  7. <div class="posts-list">
  8. {% for post in paginator.posts %}
  9. <article class="post-preview">
  10. <a href="{{ post.url | prepend: site.baseurl }}">
  11. <h2 class="post-title">{{ post.title }}</h2>
  12. {% if post.subtitle %}
  13. <h3 class="post-subtitle">
  14. {{ post.subtitle }}
  15. </h3>
  16. {% endif %}
  17. </a>
  18. <p class="post-meta">
  19. Posted on {{ post.date | date: "%B %-d, %Y" }}
  20. </p>
  21. <div class="post-entry-container">
  22. {% if post.image %}
  23. <div class="post-image">
  24. <a href="{{ post.url | prepend: site.baseurl }}">
  25. <img src="{{ post.image }}">
  26. </a>
  27. </div>
  28. {% endif %}
  29. <div class="post-entry">
  30. {{ post.excerpt | strip_html | xml_escape | truncatewords: site.excerpt_length }}
  31. {% assign excerpt_word_count = post.excerpt | number_of_words %}
  32. {% if post.content != post.excerpt or excerpt_word_count > site.excerpt_length %}
  33. <a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read&nbsp;More]</a>
  34. {% endif %}
  35. </div>
  36. </div>
  37. <!--{% if post.tags.size > 0 %}
  38. <div class="blog-tags">
  39. Tags:
  40. {% if site.link-tags %}
  41. {% for tag in post.tags %}
  42. <a href="{{ site.baseurl }}/tags#{{- tag -}}">{{- tag -}}</a>
  43. {% endfor %}
  44. {% else %}
  45. {{ post.tags | join: ", " }}
  46. {% endif %}
  47. </div>
  48. {% endif %}
  49. </article>
  50. {% endfor %}-->
  51. </div>
  52. {% if paginator.total_pages > 1 %}
  53. <ul class="pager main-pager">
  54. {% if paginator.previous_page %}
  55. <li class="previous">
  56. <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
  57. </li>
  58. {% endif %}
  59. {% if paginator.next_page %}
  60. <li class="next">
  61. <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts &rarr;</a>
  62. </li>
  63. {% endif %}
  64. </ul>
  65. {% endif %}