diff --git a/_layouts/home.html b/_layouts/home.html index cfe1c6d4..bdced321 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -32,7 +32,7 @@ {% for post in site.categories.articles limit:5 %}

{{ post.title }}

-

{% if page.description %}{{ page.description }}{% else %}{{ page.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}

+

{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}

{% endfor %} diff --git a/_layouts/post-index.html b/_layouts/post-index.html index 0c66e282..ab0a55d1 100644 --- a/_layouts/post-index.html +++ b/_layouts/post-index.html @@ -27,11 +27,21 @@
{% for post in site.posts %} -
-

{{ post.title }}

- -

{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}

-
+ {% unless post.next %} +

{{ post.date | date: '%Y' }}

+
+ {% else %} + {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} + {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} + {% if year != nyear %} +

{{ post.date | date: '%Y' }}

+
+ {% endif %} + {% endunless %} +
+

{{ post.title }}

+

{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}

+
{% endfor %}
diff --git a/_layouts/post.html b/_layouts/post.html index 68ea008a..de352d0d 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -23,7 +23,7 @@
- {{ page.title }} +

{{ page.title }}

{{ page.tagline }}

diff --git a/_posts/2013-05-22-readability-post.md b/_posts/2012-05-22-readability-post.md similarity index 100% rename from _posts/2013-05-22-readability-post.md rename to _posts/2012-05-22-readability-post.md