diff options
| author | Veikka Kähkönen <veikka.kahkonen@corefactory.com> | 2017-10-25 19:59:57 +0300 |
|---|---|---|
| committer | Veikka Kähkönen <veikka.kahkonen@corefactory.com> | 2017-10-25 19:59:57 +0300 |
| commit | ac4c0b59446bdb0eade7bdd8d721ff45395e3e3e (patch) | |
| tree | 246fd33c8145315a806f74bd8c1a9c63fe05195a /_layouts | |
| parent | 5ca8461a4dc3b6fbe3febbcd2a5cdfef35c12095 (diff) | |
Add dynamic layout for Hallitus page
Diffstat (limited to '_layouts')
| -rw-r--r-- | _layouts/hallitus.html | 43 |
1 files changed, 43 insertions, 0 deletions
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 +--- + +<section> + {{ content }} + + <div class="contact"> + <div> + {% if site.data.hallitus.people[0] %} + {% assign i = 0 %} + {% for person in site.data.hallitus.people %} + {% assign columnI = i | modulo: 2 %} + {% if columnI == 0 %} + <div class="section group"> + {% endif %} + <div class="contact-inline col span_1_of_2"> + <div class="contact-inline"> + <img class="img-circle" style="max-height:200px; margin: 0 auto;" src="{{ site.url | append: site.baseurl }}/{{ person.picture }}" alt=""> + <h3>{{ person.post_name }}</h3> + <h4>{{ person.person_name }}</h4> + <div class="contact-inline-section"> + {% assign email_tokens = person.email | split: '@' %} + <i class="fa fa-envelope" aria-hidden="true"></i> <a href="mailto:{{ email_tokens[0] }}REMOVETHIS@{{ email_tokens[1] }}">{{ email_tokens[0] }}</a><br> + <i class="fa fa-phone" aria-hidden="true"></i> {{ person.phone }}<br> + <i class="fa fa-telegram" aria-hidden="true"></i> @{{ person.username }}<br> + </div> + <div class="contact-inline-section contact-inline-spacer"> + </div> + <div class="contact-inline-section"> + {{ person.description }} + </div> + </div> + </div> + {% if columnI == 1 %} + </div> + {% endif %} + {% assign i = i | plus: 1 %} + {% endfor %} + {% endif %} + </div> + </div> +</section> |
