layout |
---|
default |
{% for competition in site.data.awards.competitions %}
{% assign years = competition.events | map: "year" | uniq | sort | reverse %}
{% for year in years %} {% assign yearStr = year | append: "" %} {% assign yearInt = year | plus: 0 %} {% assign entries = competition.events | where_exp: "e","e.year == year" %} {% for item in entries %}
- entered: {{ item.entered}} divisions
- overall: {% assign gold = item.divisions.gold | plus: item.competition-wide.gold | plus: item.floc.gold %} {% assign silver = item.divisions.silver | plus: item.competition-wide.silver | plus: item.floc.silver %} {% assign bronze = item.divisions.bronze | plus: item.competition-wide.bronze | plus: item.floc.bronze %} {% if gold > 0 %}{{ gold }} gold medal{% if gold > 1 %}s{% endif %}{% endif %} {% if silver > 0 %} {% if gold > 0 %}, {% endif %}{{ silver }} silver medal{% if silver > 1 %}s{% endif %} {% endif %} {% if bronze > 0 %} {% if gold > 0 or silver > 0 %}, {% endif %}{{ bronze }} bronze medal{% if bronze > 1 %}s{% endif %} {% endif %}
- division awards: {{ item.divisions.gold }} gold medal{% if item.divisions.gold > 1 %}s{% endif %} (out of {{ item.divisions.total}}) {% if item.competition-wide %}
- competition-wide awards:
-
{% if item.competition-wide.gold > 0 %}
- {{ item.competition-wide.gold }} gold medal{% if item.competition-wide.gold > 1 %}s{% endif %} (out of {{ item.competition-wide.total }}) {% endif %} {% if item.competition-wide.silver > 0 %}
- {{ item.competition-wide.silver }} silver medal{% if item.competition-wide.silver > 1 %}s{% endif %} (out of {{ item.competition-wide.total }}) {% endif %} {% if item.competition-wide.bronze > 0 %}
- {{ item.competition-wide.bronze }} bronze medal{% if item.competition-wide.bronze > 1 %}s{% endif %} (out of {{ item.competition-wide.total }}) {% endif %}
{% endif %}
{% if item.floc %}
- FLOC Olympic Games: {% if item.floc.gold > 0 %} {{ item.floc.gold }} gold medal{% if item.floc.gold > 1 %}s{% endif %} {% endif %} {% if item.floc.silver > 0 %} {% if item.floc.gold > 0 %}, {% endif %}{{ item.floc.silver }} silver medal{% if item.floc.silver > 1 %}s{% endif %} {% endif %} {% if item.floc.bronze > 0 %} {% if item.floc.gold > 0 or item.floc.silver > 0 %}, {% endif %}{{ item.floc.bronze }} bronze medal{% if item.floc.bronze > 1 %}s{% endif %} {% endif %} {% endif %}
{% endfor %} {% endfor %} {% endfor %}