aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeikka Kähkönen <veikka.kahkonen@aalto.fi>2017-11-07 19:18:45 +0200
committerVeikka Kähkönen <veikka.kahkonen@aalto.fi>2017-11-07 19:18:45 +0200
commitfe0bffeac3be88155c61feb5f588caf6063a3561 (patch)
tree7b81797ccef164ef9bc61826424fe9c4e7012522
parentf57062bd95477a52f8abbd4b432474988f3e765c (diff)
Add data file parameter to hallitus layout
-rw-r--r--_layouts/hallitus.html5
-rw-r--r--kilta/hallitus.md1
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
<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">
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.