From ac4c0b59446bdb0eade7bdd8d721ff45395e3e3e Mon Sep 17 00:00:00 2001 From: Veikka Kähkönen Date: Wed, 25 Oct 2017 19:59:57 +0300 Subject: Add dynamic layout for Hallitus page --- _layouts/hallitus.html | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 _layouts/hallitus.html (limited to '_layouts') diff --git a/_layouts/hallitus.html b/_layouts/hallitus.html new file mode 100644 index 0000000..8a5ed85 --- /dev/null +++ b/_layouts/hallitus.html @@ -0,0 +1,43 @@ +--- +layout: page +--- + +
+ {{ content }} + +
+
+ {% if site.data.hallitus.people[0] %} + {% assign i = 0 %} + {% for person in site.data.hallitus.people %} + {% assign columnI = i | modulo: 2 %} + {% if columnI == 0 %} +
+ {% endif %} +
+
+ +

{{ person.post_name }}

+

{{ person.person_name }}

+
+ {% assign email_tokens = person.email | split: '@' %} + {{ email_tokens[0] }}
+ {{ person.phone }}
+ @{{ person.username }}
+
+
+
+
+ {{ person.description }} +
+
+
+ {% if columnI == 1 %} +
+ {% endif %} + {% assign i = i | plus: 1 %} + {% endfor %} + {% endif %} +
+
+
-- cgit v1.3