Skip to content

Commit

Permalink
Setup for multiple award compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
johnathan99j committed Aug 21, 2018
1 parent 097a172 commit 30a2a2b
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 9 deletions.
6 changes: 3 additions & 3 deletions _data/defs/person.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
generated: true

- attr: award
type: string
short: Award person recieved on leaving the station
description: "Should be in title case, Fellowship, Commendation. If not applicable line should be omitted."
type: array
short: Award person recieved for work at the station
description: "If not applicable line should be omitted."

- attr: careers
type: array
Expand Down
5 changes: 5 additions & 0 deletions _data/defs/show.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@
short: Date of last performance
description: "In the format YYYY-MM-DD, omit if show only ran one day."

- attr: award
type: array
short: List of awards the show has won.
description: "Specify title, year and organisation who gave the award (eg. SRAs, URN, etc.). Awards given to people as part of a show should be recorded on the person's entry."

- attr: excerpt
type: string
description: "Generated excerpt of synopsis for use in search results and other summaries."
Expand Down
1 change: 1 addition & 0 deletions _includes/award.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<strong>{{ award.org }}, {{ award.year }}: </strong>{{ award.title }} {% if award.show %}(<i>{{ award.show }}</i>){% endif %}
10 changes: 6 additions & 4 deletions _layouts/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ <h2>Then</h2>
<dd><span class="unknown">Unknown</span></dd>
{% endfor %}

{% if person.award %}
<dt><i class="fas fa-fw fa-trophy"></i>Award</dt>
<dd>{{ person.award }}</dd>
{% if person.award.size != 0 %}
<dt><i class="fas fa-fw fa-trophy"></i>Awards</dt>
{% for award in person.award %}
<dd>{%include award.html award=award %}</dd>
{% endfor %}
{% endif %}

{% if person.committees %}
{% if person.committees.size != 0 %}
<dt><i class="fas fa-fw fa-users"></i>Committees</dt>
<dd>
<ul class="person-meta-list">
Expand Down
10 changes: 10 additions & 0 deletions _layouts/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ <h1 class="show-title">{{ show.title | escape_once }}</h1>
{% endif %}
</p>
</div>
{% if show.award %}
<i class="meta-icon fa fa-trophy"></i>
<div class="meta-col show-awards">
<p>
{% for award in show.award %}
{% include award.html award=award %}{% unless forloop.last %}<br /> {% endunless %}
{% endfor %}
</p>
</div>
{% endif %}
</div>

</header>
Expand Down
5 changes: 4 additions & 1 deletion _people/james_perkins.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ course:
links:
- type: Twitter
username: JamesPkns
award: Lifetime Membership
award:
- title: Lifetime Membership
year: 2017
org: URN
graduated: 2017
---
5 changes: 4 additions & 1 deletion _people/matt_manley.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ gender: male
links:
- type: Twitter
username: MattManley95
award: Lifetime Membership
award:
- title: Lifetime Membership
year: 2017
org: URN
graduated: 2017
---

0 comments on commit 30a2a2b

Please sign in to comment.