Skip to content

Commit

Permalink
rework funding-statement include
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 3, 2024
1 parent f0e44c6 commit 30cf643
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions _includes/funding-statement.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% if include.contributions.funding %}
{% if include.funders %}
<div markdown="1">
<h2 id="funding">{{locale['references']| default: "Funding" }}</h2>
<p>These individuals or organisations provided funding support for the development of this resource</p>

<div class="d-flex flex-wrap">
{% for id in include.contributions.funding %}
{% for id in include.funders %}
{% assign name = site.data.contributors[id].name | default: id -%}
<a href="{{ site.baseurl }}/hall-of-fame/{{ id }}/" class="funder-badge">
{% assign pfo = site.data.funders[id] | default: site.data.organisations[id] | default: site.data.contributors[id] | default: nil %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h3 id="Organisers">Organisers & Instructors</h3>


{% if event.contributions.funding %}
{% include _includes/funding-statement.md contributions=page.contributions %}
{% include _includes/funding-statement.md funders=page.contributions.funding %}
{% endif %}

</section>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/learning-pathway.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h2 id="editorial-board">Editorial Board</h2>
<h2 id="funders">Funders</h2>
<p>This material was funded by:</p>
{% assign funders = pathway.funding | sorted %}
{% include _includes/funding-statement.md contributors=funders %}
{% include _includes/funding-statement.md funders=funders %}
{% endif %}

</section>
2 changes: 1 addition & 1 deletion _layouts/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2 id="bibliography">{{locale['references']| default: "References" }}</h2>
{% endif %}

{% if page.contributions %}
{% include _includes/funding-statement.md contributions=page.contributions %}
{% include _includes/funding-statement.md funders=page.contributions.funding %}
{% endif %}
</div>

Expand Down
2 changes: 1 addition & 1 deletion _layouts/slides-plain.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ <h2 id="bibliography">{{locale['references']| default: "References" }}</h2>
{% endif %}

{% if page.contributions %}
{% include _includes/funding-statement.md contributions=page.contributions %}
{% include _includes/funding-statement.md funders=page.contributions.funding %}
{% endif %}
2 changes: 1 addition & 1 deletion _layouts/topic.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h2 id="contributors">Contributors</h2>
<h2 id="funders">Funders</h2>
<p>This material was funded by:</p>
{% assign funders_list_sorted = topic_material | identify_funders: site %}
{% include _includes/funding-statement.html contributors=funders_list_sorted %}
{% include _includes/funding-statement.md funders=funders_list_sorted %}

{% if topic.references %}
<h2 id="references">References</h2>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/tutorial_hands_on.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ <h1>{{locale['citing-tutorial'] | default: "Citing this Tutorial"}}</h1>
</blockquote>

{% if page.contributions %}
{% include _includes/funding-statement.md contributions=page.contributions %}
{% include _includes/funding-statement.md funders=page.contributions.funding %}
{% endif %}


Expand Down

0 comments on commit 30cf643

Please sign in to comment.