Skip to content

Commit

Permalink
Add new SRA section to site
Browse files Browse the repository at this point in the history
Will close #62
Will close #51
Part of #46
Will close #45
  • Loading branch information
johnathan99j committed Nov 18, 2018
1 parent efc34f7 commit 6567dc6
Show file tree
Hide file tree
Showing 14 changed files with 188 additions and 6 deletions.
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ collections:
people:
output: true
permalink: people/:path/
sras:
output: true
permalink: sras/:path/

defaults:
# Shows
Expand Down
49 changes: 49 additions & 0 deletions _content/sras.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
layout: default
title: Student Radio Awards
group: top
body_class: header-nobr
current: sras
---

<div class="banner-header fellows-header">
<h1>{{ page.title }}</h1>
<i class="banner-header-icon fas fa-trophy"></i>
</div>


<div class="wrapper">
<hr>
<ul class="people-grid">
{% for sra in site.sras reversed %}
<li>
<div class="title" style="align-self: center;">
<a href="#">{{ sra.year }}</a>
</div>
<ul class="people-grid-list" style="text-align: center; ">
{% for award in sra.awards %}
<li style="align-self: center; text-align: center">
<div style="align-self: center;">
{% case award.level %}
{% when 'Gold' %}
<i class="fas fa-trophy" style="color: #FFD700; margin: 0 5px;"></i>
{% when 'Silver' %}
<i class="fas fa-trophy" style="color: #C0C0C0; margin: 100% 5px;"></i>
{% when 'Bronze' %}
<i class="fas fa-trophy" style="color: #CD7F32; margin: 100% 5px;"></i>
{% endcase %}
</div>
<div class="name">{{ award.award_name }}
{% if award.awarded_to %}
<hr style="margin: 3px 0">
{{ award.awarded_to }}
{% endif %}
</div>
</li>
{% endfor %}
</ul>
</li>
<hr>
{% endfor %}
</ul>
</div>
4 changes: 4 additions & 0 deletions _data/header.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
href: /history/
slug: history
icon: fas fa-book
- section: SRAs
href: /sras/
slug: sras
icon: fas fa-trophy
- section: About
href: /about/
slug: about
Expand Down
8 changes: 4 additions & 4 deletions _plugins/awards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ def generate(site)
@site = site

people = site.collections["people"].docs
fellows = people.select { |p| p.data["award"].include? "Fellowship" }
sras = people.select { |p| p.data["award"].include? "Fellowship" }
commendations = people.select { |p| p.data["award"].include? "Commendation" }

# sort_people from people.rb
fellows.sort!(&method(:sort_people))
sras.sort!(&method(:sort_people))
commendations.sort!(&method(:sort_people))

input_holders_into_years(fellows, "fellows")
input_holders_into_years(sras, "sras")
input_holders_into_years(commendations, "commendations")

site.data["fellows"] = fellows
site.data["sras"] = sras
site.data["commendations"] = commendations

end
Expand Down
2 changes: 1 addition & 1 deletion _plugins/year.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(site, collection, year)
"grad_year" => @year+1,
"year" => "#{ year_span_short[0] }_#{ year_span_short[1] }",
"decade" => @year.to_s[0..2],
"fellows" => [],
"sras" => [],
"commendations" => [],
}

Expand Down
2 changes: 1 addition & 1 deletion _sass/_type.sass
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ ul, ol
li
padding-bottom: $baseline
&:last-child
padding-bottom: 0
// padding-bottom: 0
&.minimal
margin-left: 0
h3, h4, h5, h6
Expand Down
13 changes: 13 additions & 0 deletions _sras/10_11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
year: 2010-11

awards:
- award_name: Best Station
level: Gold
- award_name: Best Journalistic Programming
level: Silver
awarded_to: The Pulse
- award_name: Best Live Event or OB
level: Silver
awarded_to: <strong>Unknown</strong>
---
21 changes: 21 additions & 0 deletions _sras/11_12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
year: 2011-12

awards:
- award_name: Best Station
level: Gold
- award_name: Best Marketing and Station Sound
level: Gold
- award_name: Best Newcomer
level: Bronze
awarded_to: <strong>Unknown</strong>
- award_name: Best Journalistic Programming
level: Gold
awarded_to: The Pulse - The Truth about Taxis
- award_name: Best Journalistic Programming
level: Silver
awarded_to: The Pulse - Who's Lenton Is It?
- award_name: Best Journalistic Programming
level: Bronze
awarded_to: The Pulse - Who's Protecting Who?
---
12 changes: 12 additions & 0 deletions _sras/12_13.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
year: 2012-13

awards:
- award_name: Best Station
level: Gold
- award_name: Best Journalistic Programming
level: Silver
awarded_to: The Science Show
- award_name: Best Marketing and Station Sound
level: Bronze
---
8 changes: 8 additions & 0 deletions _sras/13_14.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
year: 2013-14

awards:
- award_name: Best Speech
level: Silver
awarded_to: The Science Show - A Brief History of You
---
8 changes: 8 additions & 0 deletions _sras/14_15.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
year: 2014-15

awards:
- award_name: Best Technical Achievement
level: Bronze
awarded_to: OB One
---
14 changes: 14 additions & 0 deletions _sras/15_16.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
year: 2015-16

awards:
- award_name: Best Station
level: Gold
- award_name: Best Newcomer
level: Gold
awarded_to: James Turner
- award_name: Best Newcomer
level: Bronze
awarded_to: Gabrielle Morris

---
7 changes: 7 additions & 0 deletions _sras/16_17.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
year: 2016-17

awards:
- award_name: Best Station
level: Gold
---
43 changes: 43 additions & 0 deletions _sras/17_18.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
year: 2017-18

awards:
- award_name: Best Station
level: Gold
- award_name: Best Female
level: Gold
awarded_to: Nikki Osborne
- award_name: Best Female
level: Bronze
awarded_to: Ella Wydrzynska
- award_name: Best Journalistic Programming
level: Gold
awarded_to: The Pulse
- award_name: Best Speech Programming
level: Silver
awarded_to: URN Culture
- award_name: Best Interview
level: Bronze
awarded_to: Nick Sutton-Smith
- award_name: Best Entertainment Programme
level: Gold
awarded_to: The Specials
- award_name: Best Entertainment Programme
level: Bronze
awarded_to: Campaign Relief
- award_name: Best Multiplatform
level: Silver
awarded_to: The Lightning Draft
- award_name: Best Sports Programming
level: Gold
awarded_to: Referee Abuse Special
- award_name: Best Sports Programming
level: Silver
awarded_to: The Thursday Sports Show
- award_name: Best Podcast
level: Silver
awarded_to: Jack Theroux
- award_name: The Kevin Greening Creativity Award
level: Bronze
awarded_to: The Lightning Draft
---

0 comments on commit 6567dc6

Please sign in to comment.