diff --git a/_config.yml b/_config.yml index 20d82e19..b691da24 100644 --- a/_config.yml +++ b/_config.yml @@ -2,7 +2,7 @@ title: Minimal Mistakes tagline: Jekyll Theme description: A responsive Jekyll theme with editorial design tendencies. #Comment out url when working locally to resolve base urls correctly -url: http://mmistakes.github.io/minimal-mistakes +#url: http://mmistakes.github.io/minimal-mistakes # Owner/author information goes here. owner: 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/_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