From fe0bffeac3be88155c61feb5f588caf6063a3561 Mon Sep 17 00:00:00 2001 From: Veikka Kähkönen Date: Tue, 7 Nov 2017 19:18:45 +0200 Subject: Add data file parameter to hallitus layout --- _layouts/hallitus.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '_layouts') 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
- {% 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 %}
-- cgit v1.3