From cf86711b9b19c49fa83ee781835e3f6f4634122e Mon Sep 17 00:00:00 2001 From: redfast00 Date: Sun, 12 Jul 2020 11:22:00 +0200 Subject: [PATCH] Split supporting member years and academic year --- data/supporting_members.yaml | 2 +- lib/helpers/about.rb | 4 ++-- nanoc.yaml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/supporting_members.yaml b/data/supporting_members.yaml index 4fe10f4..4011346 100644 --- a/data/supporting_members.yaml +++ b/data/supporting_members.yaml @@ -1,6 +1,6 @@ --- data: - 19-20: + 2020: - name: Titouan Vervack nickname: FlashYoshi photo: https://zeus.ugent.be/zeuswpi/0U6neVQP.jpg diff --git a/lib/helpers/about.rb b/lib/helpers/about.rb index d7fa3ee..67929aa 100644 --- a/lib/helpers/about.rb +++ b/lib/helpers/about.rb @@ -12,7 +12,7 @@ module AboutHelper end def current_sponsoring_members - sponsoring_members_of(@config[:academic_year].to_sym) + sponsoring_members_of(@config[:sponsoring_members_year]) end def all_bestuur @@ -32,7 +32,7 @@ module AboutHelper def to_full_year(year) (year.to_i < 90) ? "20#{year}" : "19#{year}" end - + def to_HTML(text) text.gsub("<", "<").gsub(">", ">").gsub("\n", "
"); end diff --git a/nanoc.yaml b/nanoc.yaml index 3fbeab0..f07fcf5 100644 --- a/nanoc.yaml +++ b/nanoc.yaml @@ -1,5 +1,6 @@ title: Zeus WPI academic_year: 20-21 +sponsoring_members_year: 2020 # Needed for atom_feed author_name: '' author_uri: ''