mirror of
https://github.com/ipdb/website.git
synced 2024-11-22 17:40:03 +01:00
make contact data into include, repeat on Imprint
This commit is contained in:
parent
680028ccaf
commit
43c9920ba3
26
_src/_includes/contact.html
Normal file
26
_src/_includes/contact.html
Normal 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>
|
@ -41,31 +41,6 @@
|
|||||||
<div class="grid__col grid__col--2">
|
<div class="grid__col grid__col--2">
|
||||||
<h3></h3>
|
<h3></h3>
|
||||||
|
|
||||||
{% assign contact = site.data.contact %}
|
{% include contact.html %}
|
||||||
|
|
||||||
<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>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,3 +5,5 @@ title: Imprint
|
|||||||
|
|
||||||
narrow: true
|
narrow: true
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{% include contact.html %}
|
||||||
|
Loading…
Reference in New Issue
Block a user