From abb4507e5e1a0673de5ff4f94bdedbfa81ea5489 Mon Sep 17 00:00:00 2001 From: Veikka Kähkönen Date: Mon, 27 Nov 2017 16:34:31 +0200 Subject: Change contact SASS into BEM format and simplify hallitus layout --- _layouts/hallitus.html | 64 ++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 33 deletions(-) (limited to '_layouts') diff --git a/_layouts/hallitus.html b/_layouts/hallitus.html index 937b718..974b430 100644 --- a/_layouts/hallitus.html +++ b/_layouts/hallitus.html @@ -5,40 +5,38 @@ layout: page
{{ content }} -
-
- {% assign people = site.data[page.data].people %} - {% if people[0] %} - {% assign i = 0 %} - {% for person in 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 }} -
+
+ {% assign people = site.data[page.data].people %} + {% if people[0] %} + {% assign i = 0 %} + {% for person in 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 %} -
+
+ {% if columnI == 1 %} +
+ {% endif %} + {% assign i = i | plus: 1 %} + {% endfor %} + {% endif %}
-- cgit v1.3