From 91b64afaa10dccab6c17c3b20a9e4e16c7d82270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Thu, 22 Sep 2016 21:13:46 +0200 Subject: [PATCH] blog enzo --- .../assets/stylesheets/includes/blogpost.scss | 11 +++++ content/posts/16-17/moar-review.md | 7 +++ content/posts/16-17/review-c.md | 1 + layouts/archive_page.erb | 47 ++++++++++++------- lib/helpers/archives.rb | 2 +- 5 files changed, 50 insertions(+), 18 deletions(-) create mode 100644 content/posts/16-17/moar-review.md diff --git a/content/assets/stylesheets/includes/blogpost.scss b/content/assets/stylesheets/includes/blogpost.scss index bd7ee28..a23d397 100644 --- a/content/assets/stylesheets/includes/blogpost.scss +++ b/content/assets/stylesheets/includes/blogpost.scss @@ -3,3 +3,14 @@ font-size: 4em; } } + +.padbox{ + margin-bottom:10px; +} + +.bolder a{ + color:#565C5E; + font-weight: bold; + font-size: 20pt; + font-family: 'Avenir'; +} diff --git a/content/posts/16-17/moar-review.md b/content/posts/16-17/moar-review.md new file mode 100644 index 0000000..bbdd7d5 --- /dev/null +++ b/content/posts/16-17/moar-review.md @@ -0,0 +1,7 @@ +--- +title: moar review +description: blub +banner: https://i.ytimg.com/vi/tntOCGkgt98/maxresdefault.jpg +created_at: 24-10-2016 +--- +blub diff --git a/content/posts/16-17/review-c.md b/content/posts/16-17/review-c.md index 7bdbd4d..ed38a66 100644 --- a/content/posts/16-17/review-c.md +++ b/content/posts/16-17/review-c.md @@ -1,4 +1,5 @@ --- +banner: http://dailydropcap.com/images/C-9.jpg title: C review description: We hebben even wat dingen in C geschreven, en dit zijn onze meningen created_at: 23-10-2016 diff --git a/layouts/archive_page.erb b/layouts/archive_page.erb index 7b8cfc2..54a28a5 100644 --- a/layouts/archive_page.erb +++ b/layouts/archive_page.erb @@ -1,19 +1,32 @@ -<% posts_in_year(item[:academic_year]).each do |post| %> - -
- + + <% end %>
- -<% end %> +
+ +
+ diff --git a/lib/helpers/archives.rb b/lib/helpers/archives.rb index f11d29f..0af010a 100644 --- a/lib/helpers/archives.rb +++ b/lib/helpers/archives.rb @@ -11,7 +11,7 @@ module ArchiveHelper end def academic_years_items - academic_years.map { |y| [y, items["/archives/#{y}-#{y + 1}.html"]] }.to_h + academic_years.to_a.reverse.map { |y| [y, items["/archives/#{y}-#{y + 1}.html"]] }.to_h end def pretty_year(year)