Fix double ID issue

This commit is contained in:
Nico Jensen 2023-07-24 09:59:24 +02:00
parent 0e2201d4da
commit 36f92254bf

View file

@ -10,12 +10,12 @@ title: Kontakt
</header> </header>
<div class="post-content wrapper"> <div class="post-content wrapper">
{% if site.data.social-media %} {% if site.data.social-media %}
<div id="social-media"> <div id="social-media-block ">
{% assign sm = site.data.social-media %} {% assign sm = site.data.social-media %}
{% for entry in sm%} {% for entry in sm%}
{% assign key = entry | first %} {% assign key = entry | first %}
{% if sm[key].id %} {% if sm[key].id %}
<div id="social-media-block" class="smbtn"> <div class="smbtn">
<a href="{{sm[key].href}}" title="{{sm[key].title}}" target="_blank" rel="noopener {{sm[key].rel}}">{{sm[key].link}}</a> <a href="{{sm[key].href}}" title="{{sm[key].title}}" target="_blank" rel="noopener {{sm[key].rel}}">{{sm[key].link}}</a>
{% if sm[key].logo != "" %}<img src="/assets/images/sm_logos/{{sm[key].logo}}" alt="{{sm[key].title}} Logo">{% endif %} {% if sm[key].logo != "" %}<img src="/assets/images/sm_logos/{{sm[key].logo}}" alt="{{sm[key].title}} Logo">{% endif %}
</div> </div>