Skip to content

Commit a5d0a3f

Browse files
authored
Merge pull request #320 from ELIXIR-Belgium/sort-affil-section-tile
Sort affiliations inside section navigation tiles
2 parents 831c2aa + cceddc0 commit a5d0a3f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

_includes/section-navigation-tiles.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,12 @@
100100
<p class="card-text h-100">{{ current_page.description}}</p>
101101
{%- endif %}
102102
{%- if current_page.affiliations %}
103+
{%- assign pageaffil = current_page.affiliations | sort %}
103104
{%- assign alllogos = site.data.affiliations %}
104105
{%- assign allcountries = site.data.countries %}
105106
<div class="d-flex align-items-center flex-wrap gap-2">
106107
<span><b><small>Affiliations:</small></b></span>
107-
{%- for affiliation in current_page.affiliations %}
108+
{%- for affiliation in pageaffil %}
108109
{%- assign filter_affiliation = alllogos | where: "name", affiliation | first %}
109110
{%- assign country = affiliation | upcase %}
110111
{%- if affiliation.size == 2 %}

elixir-toolkit-theme.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Gem::Specification.new do |spec|
44
spec.name = "elixir-toolkit-theme"
55

6-
spec.version = "4.0.0"
6+
spec.version = "4.1.0"
77
spec.authors = ["bedroesb"]
88
spec.email = ["bert.droesbeke@vib.be"]
99

0 commit comments

Comments
 (0)