diff options
| author | Veikka Kähkönen <veikka.kahkonen@aalto.fi> | 2017-11-07 19:18:45 +0200 |
|---|---|---|
| committer | Veikka Kähkönen <veikka.kahkonen@aalto.fi> | 2017-11-07 19:18:45 +0200 |
| commit | fe0bffeac3be88155c61feb5f588caf6063a3561 (patch) | |
| tree | 7b81797ccef164ef9bc61826424fe9c4e7012522 /_layouts | |
| parent | f57062bd95477a52f8abbd4b432474988f3e765c (diff) | |
Add data file parameter to hallitus layout
Diffstat (limited to '_layouts')
| -rw-r--r-- | _layouts/hallitus.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/_layouts/hallitus.html b/_layouts/hallitus.html index 8a5ed85..937b718 100644 --- a/_layouts/hallitus.html +++ b/_layouts/hallitus.html @@ -7,9 +7,10 @@ layout: page <div class="contact"> <div> - {% if site.data.hallitus.people[0] %} + {% assign people = site.data[page.data].people %} + {% if people[0] %} {% assign i = 0 %} - {% for person in site.data.hallitus.people %} + {% for person in people %} {% assign columnI = i | modulo: 2 %} {% if columnI == 0 %} <div class="section group"> |
