From 4c4d9c56961aadf3e8937309e1cdfac9557de817 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sun, 24 May 2015 11:13:45 +0200 Subject: [PATCH] New archive handling, and an adjustment to the existing archive --- _config.yml | 9 +++++++++ _layouts/archive.html | 34 ++++++++++++++++++++++++++++++++++ archive.html | 2 +- 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 _layouts/archive.html diff --git a/_config.yml b/_config.yml index d4164a5..d053d12 100644 --- a/_config.yml +++ b/_config.yml @@ -229,5 +229,14 @@ disqus_commments: forum_name: dennogumi limit: 5 +archive: + - path: /:year + layout: archive + title: Blog archive - :year + - path: /:year/:month + layout: archive + title: Blog Archive - :month :year + gems: + - jekyll/itafroma/archive - jekyll-sitemap \ No newline at end of file diff --git a/_layouts/archive.html b/_layouts/archive.html new file mode 100644 index 0000000..cef2dc6 --- /dev/null +++ b/_layouts/archive.html @@ -0,0 +1,34 @@ +--- +license: MIT +layout: default +format: page +comments: false +show_meta: false +--- +
+
+

{{ page.title }}

+
    + {% for post in page.archive.posts reversed %} +
  • {{ post.title }}
  • + {% endfor %} +
+
+ + +
+ +
+
diff --git a/archive.html b/archive.html index db39eda..d38712c 100644 --- a/archive.html +++ b/archive.html @@ -14,7 +14,7 @@ permalink: "archive/"
{% assign counter = 1 %} - {% for post in site.posts limit:1000 %} + {% for post in site.posts limit:1000 reversed %}
{% if post.subheadline %}{{ post.subheadline }} › {% endif %}{{ post.title }}