post.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. ---
  2. layout: blog
  3. ---
  4. <h1 class="blogHeader">
  5. Blog
  6. <span class="rss">
  7. <img src="{{ site.baseurl }}/static/img/subscribe.png"><a href="{{ site.baseurl }}{{ site.rss_path }}">RSS Feed</a>
  8. </span>
  9. </h1>
  10. <div class="post">
  11. <header>
  12. <div class="title">{{ page.title }}</div>
  13. <div class="author">By:
  14. {% if page.author.url %}
  15. <a href="{{ page.author.url }}">{{ page.author.name }}</a>
  16. {% else %}
  17. {{ page.author.name }}
  18. {% endif %}
  19. </div>
  20. <div class="date">{{ page.date | date_to_string }}</div>
  21. </header>
  22. <section>
  23. <div>
  24. {{ content }}
  25. </div>
  26. </section>
  27. <footer>
  28. <div class="row">
  29. <div class="col-sm-6">
  30. {% if page.previous %}
  31. <a href="{{ site.baseurl }}{{ page.previous.url }}">Previous</a>
  32. <br>
  33. <br>
  34. <a class="title" href="{{ site.baseurl }}{{ page.previous.url }}">{{ page.previous.title }}</a>
  35. <div class="date"> {{ page.previous.date | date_to_string }} - By {{ page.previous.author.name }} </div>
  36. <p class="content">
  37. {{ page.previous.excerpt | strip_html | truncatewords:12 }}
  38. </p>
  39. {% endif %}
  40. </div>
  41. <div class="col-sm-6">
  42. {% if page.next %}
  43. <a href="{{ site.baseurl }}{{ page.next.url }}">Next</a>
  44. <br>
  45. <br>
  46. <a class="title" href="{{ site.baseurl }}{{ page.next.url }}">{{ page.next.title }}</a>
  47. <div class="date"> {{ page.next.date | date_to_string }} - By {{ page.next.author.name}} </div>
  48. <p class="content">
  49. <!--
  50. NOTE:
  51. the markdownify filter is used here
  52. because posts are rendered in sequence;
  53. that is, the next post's content isn't
  54. yet rendered at the time that this post
  55. is being rendered, so page.next.excerpt
  56. is still in Markdown and not HTML
  57. Reference: https://github.com/jekyll/jekyll/issues/2860
  58. -->
  59. {{ page.next.excerpt | markdownify | strip_html | truncatewords:12 }}
  60. </p>
  61. {% endif %}
  62. </div>
  63. </div>
  64. </footer>
  65. <div class="disqus">
  66. {% include disqus.html %}
  67. </div>
  68. </div>