-
- {% for post in paginator.posts %}
- {% include post-list-item.html %}
+ {% for post in site.posts %}
+ {% unless post.next %}
+
- {{ post.title }} + {% endfor %} -
diff --git a/Vagrantfile b/Vagrantfile
index 50d1d59..c7a55c5 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -7,6 +7,8 @@ Vagrant.configure('2') do |config|
config.vm.network "forwarded_port", guest: 4000, host: 4000, auto_correct: true
config.vm.provision :shell, :inline => <<-EOT
sudo apt-get -y install build-essential
+ sudo apt-get -y install ruby-rvm
+ rvm use 1.9.3 --default
sudo /opt/vagrant_ruby/bin/gem install jekyll rdiscount kramdown --no-ri --no-rdoc
EOT
end
diff --git a/archive/index.html b/archive/index.html
index 060b3c1..d3d0bcb 100644
--- a/archive/index.html
+++ b/archive/index.html
@@ -1,15 +1,24 @@
---
layout: default
-title: My blog's archive
-description: All posts are gathered here
+title: Balanced Blog
+description: Balanced Blog Archive
---
- {% for post in paginator.posts %}
- {% include post-list-item.html %}
+ {% for post in site.posts %}
+ {% 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 %}
+
+