Skip to content

Latest commit

 

History

History
56 lines (49 loc) · 1.23 KB

grants-02-funders.md

File metadata and controls

56 lines (49 loc) · 1.23 KB
layout menu title
page
true
Grants by Funder

{% comment %} Code adapted from https://codinfox.github.io/dev/2015/03/06/use-tags-and-categories-in-your-jekyll-based-github-pages/ {% endcomment %}

{% comment %}

Collect and sort funders and display tags

{% endcomment %}

{% assign funders = "" %} {% for grant in site.grants %} {% assign funder = grant.funder | join:'|' | append:'|' %} {% unless funders contains funder %} {% assign funders = funders | append:funder %} {% endunless %} {% endfor %} {% assign funders = funders | split:'|' | sort %}

{% for funder in funders %} {{ funder }} {% endfor %}

{% comment %}

List all grants by funder

{% endcomment %}

{% for funder in funders %}

{{ funder }}

    {% for grant in site.grants %} {% if grant.funder == funder %}
  • {{ grant.title }} {{ grant.author }}, {{ grant.year }}, {{ grant.status }}
  • {% endif %} {% endfor %}
{% endfor %}