Skip to content

Latest commit

 

History

History
89 lines (82 loc) · 3.69 KB

awards.md

File metadata and controls

89 lines (82 loc) · 3.69 KB
layout
default

Awards

Paper Awards

{% for item in site.data.publications.papers %} {% if item.awards %}   {% for cauthor in item.author %}{{ cauthor }}{% if forloop.last == false %}, {% endif %}{% endfor %}. {% if item.pdf %}[{{ item.title }}](publications.html#{{ item.id }}){% else %}{{ item.title }}{% endif %}. {{ item.publication-title }}{% if item.type == "journal" and item.volume %} {{ item.volume }}{% if item.issue %} ({{ item.issue }}){% endif %}{% endif %}{% if item.pages %}: {{ item.pages }}{% endif %}. ({% if item.year == 9999 %}to appear{% else %}{{ item.year }}{% endif %}){% if item.awards %}{% if item.awards.url %}{% endif %}{% for award in item.awards.awards %}
{{ award }}{% endfor %}{% if item.awards.url %}
{% endif %}
{% endif %}
{% endif %} {% endfor %}

Competitions

{% assign years = site.data.awards.awards | map: "year" | uniq | sort | reverse %} {% for year in years %} {% assign yearStr = year | append: "" %} {% assign yearInt = year | plus: 0 %} {% assign entries = site.data.awards.awards | where_exp: "e","e.year == year" %} {% for item in entries %}

  {{ item.event }} (details)

  • 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 %}