index.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ---
  2. layout: blog
  3. title: Blog
  4. change_frequency: weekly
  5. priority: 0.7
  6. ---
  7. <div class="row">
  8. <div class="col-sm-8 blog-list">
  9. <h1 class="blogHeader">
  10. Blog
  11. <span class="rss">
  12. <img src="{{ site.baseurl }}/static/img/subscribe.png"><a href="{{ site.baseurl }}{{ site.rss_path }}">RSS Feed</a>
  13. </span>
  14. </h1>
  15. <ul class="posts">
  16. {% for post in site.posts %}
  17. <li>
  18. <header>
  19. <div class="adorner" blogTime="{{ post.date | date_to_rfc822 }}"></div>
  20. <h2 class="title">
  21. <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
  22. </h2>
  23. <div class="details">
  24. <span class="date">{{ post.date | date_to_string }}</span>
  25. - by
  26. <span class="author">
  27. {% if post.author.url %}
  28. <a href="{{ post.author.url }}">{{ post.author.name }}</a>
  29. {% else %}
  30. {{ post.author.name }}
  31. {% endif %}
  32. </span>
  33. <a class="comment" href="{{ site.baseurl }}{{ post.url }}#disqus_thread"></a>
  34. </div>
  35. </header>
  36. <section class="post-excerpt">
  37. <p>{{ post.excerpt }}</p>
  38. <div><a href="{{ site.baseurl }}{{ post.url }}">More...</a></div>
  39. </section>
  40. </li>
  41. {% endfor %}
  42. </ul>
  43. <!-- <a target="_blank" href="http://feed1.w3.org/check.cgi?url={{ site.baseurl }}{{ site.rss_path }}"><img src="{{ site.baseurl }}/static/img/valid-rss-rogers.png" alt="[Valid RSS]" title="Validate my RSS feed" /></a> -->
  44. </div>
  45. <div class="col-sm-4 social-container">
  46. </div>
  47. </div>
  48. <script>
  49. window.onload = function(){
  50. setTimeout(function(){
  51. var lastPostTime = new Date("{{ site.posts[0].date | date_to_rfc822 }}").getTime();
  52. setCookie("visitTime", lastPostTime, 365);
  53. }, 2000);
  54. };
  55. </script>
  56. {% include comment_count.html %}