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 +++-- kilta/hallitus.md | 1 + 2 files changed, 4 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
- {% 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 %}
diff --git a/kilta/hallitus.md b/kilta/hallitus.md index 71f3000..ce90bb4 100644 --- a/kilta/hallitus.md +++ b/kilta/hallitus.md @@ -1,5 +1,6 @@ --- layout: hallitus title: Hallitus +data: hallitus --- Hallituksen jäsenten sähköpostiosoitteet ovat muotoa hallitusvirka@as.fi. Koko hallituksen tavoittaa sähköpostiosoitteesta hallitus ät as.fi. -- cgit v1.3