diff options
Diffstat (limited to 'articles')
| -rw-r--r-- | articles/index.html | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/articles/index.html b/articles/index.html index ccb2633..5a7a0d7 100644 --- a/articles/index.html +++ b/articles/index.html @@ -3,15 +3,26 @@ layout: static title: Articles --- -<ul class="post-listing"> - {% for post in site.posts %} - <li> - <header class="entry-title"> - <h2> - <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> - </h2> - <p class="oneliner">{{ post.summary }}</p> - </header> - </li> - {% endfor %} -</ul> +<center><h1><a href="{{ root_url }}/">lumberjaph.net</a></h1></center> + +{% for post in site.posts reverse %} + + {% capture date %}{{ post.date }}{% endcapture %} + {% capture this_year %}{{ date | date: "%Y" }}{% endcapture %} + + {% unless year == this_year %} + {% assign year = this_year %} + {% unless forloop.first %} + </section> + {% endunless %} + <section class="archives"><h2>{{ date | date: "%Y" }}</h2> + {% endunless %} + + <article> + <h3><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h3> + <div class="meta"> + // <span class="date">{{ date | date: "%b %e " }}</span> ‐ <span class="oneliner">{{ post.summary }}</span> + </div> + </article> + +{% endfor %} |
