1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-13 16:54:50 +01:00

make contact data into include, repeat on Imprint

This commit is contained in:
Matthias Kretschmann 2017-09-07 14:09:39 +02:00
parent 680028ccaf
commit 43c9920ba3
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 29 additions and 26 deletions

View File

@ -0,0 +1,26 @@
{% assign contact = site.data.contact %}
<div class="company">
<h4 class="company__name">{{ contact.company }}</h4>
<p>
<a href="mailto:{{ contact.email }}">{{ contact.email }}</a>
</p>
<p>
{{ contact.address.street }}<br />
{{ contact.address.zip }} {{ contact.address.city }}<br />
{{ contact.address.country }}
</p>
</div>
<ul class="social-list">
{% for item in contact.social %}
<li>
<a href="{{ item.link }}" title="{{ item.name }}">
<svg class="icon" aria-labelledby="title">
<title>{{ item.name }}</title>
<use xlink:href="/assets/img/sprite.svg#icon-{{ item.name | downcase }}"></use>
</svg>
</a>
</li>
{% endfor %}
</ul>

View File

@ -41,31 +41,6 @@
<div class="grid__col grid__col--2">
<h3></h3>
{% assign contact = site.data.contact %}
<div class="company">
<h4 class="company__name">{{ contact.company }}</h4>
<p>
<a href="mailto:{{ contact.email }}">{{ contact.email }}</a>
</p>
<p>
{{ contact.address.street }}<br />
{{ contact.address.zip }} {{ contact.address.city }}<br />
{{ contact.address.country }}
</p>
</div>
<ul class="social-list">
{% for item in contact.social %}
<li>
<a href="{{ item.link }}" title="{{ item.name }}">
<svg class="icon" aria-labelledby="title">
<title>{{ item.name }}</title>
<use xlink:href="/assets/img/sprite.svg#icon-{{ item.name | downcase }}"></use>
</svg>
</a>
</li>
{% endfor %}
</ul>
{% include contact.html %}
</div>
</div>

View File

@ -5,3 +5,5 @@ title: Imprint
narrow: true
---
{% include contact.html %}