From 7483b2b03478495ea1961192fb580b969173d1ed Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Sat, 1 Jun 2013 14:05:58 -0400 Subject: [PATCH 1/4] Use correct descriptions for recent posts on home. Fixes #3 --- _layouts/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %} From 55a62673c470309c54f735a99d25cad9e3de659b Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 3 Jun 2013 13:59:08 -0400 Subject: [PATCH 2/4] Fix typo in h1 --- _layouts/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}

From 6b61255d4c66b9f6ac00ef766707a5506c4ce604 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Tue, 4 Jun 2013 12:00:06 -0400 Subject: [PATCH 3/4] Group articles by year, remove publish dates (visual noise) --- _config.yml | 2 +- _layouts/post-index.html | 20 ++++++++++++++----- ...post.md => 2012-05-22-readability-post.md} | 0 3 files changed, 16 insertions(+), 6 deletions(-) rename _posts/{2013-05-22-readability-post.md => 2012-05-22-readability-post.md} (100%) 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 From 43543e3d5accbf648f8358ef96f505f49c95e292 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Tue, 4 Jun 2013 14:21:10 -0400 Subject: [PATCH 4/4] Update site.url --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index b691da24..20d82e19 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: