Add a '|' to begin and end

This commit is contained in:
Nico Jensen 2021-06-21 15:33:01 +02:00
parent cd99c16139
commit c0b68f3377

View file

@ -3,25 +3,21 @@
{% if site.data.footer-links %}
<div id="footerlinks">
{% assign footerlinks = site.data.footer-links %}
&nbsp;|&nbsp;
{% for footerlink in footerlinks %}
{% assign fkey = footerlink | first %}
<a href="{{footerlinks[fkey].href}}" title="{{footerlinks[fkey].title}}">{{footerlinks[fkey].title}}</a>
{% if fkey != 'rss' %}
&nbsp;|&nbsp;
{% endif %}
<a href="{{footerlinks[fkey].href}}" title="{{footerlinks[fkey].title}}">{{footerlinks[fkey].title}}</a>&nbsp;|&nbsp;
{% endfor %}
</div>
{% endif %}
{% if site.data.social-media %}
<div id="social-media">
{% assign sm = site.data.social-media %}
&nbsp;|&nbsp;
{% for entry in sm %}
{% assign key = entry | first %}
{% if sm[key].id %}
<a href="{{sm[key].href}}{{sm[key].id}}" title="{{sm[key].title}}" rel="nofollow">{{sm[key].link}}</a>
{% if key != 'instagram' %}
&nbsp;|&nbsp;
{% endif %}
<a href="{{sm[key].href}}{{sm[key].id}}" title="{{sm[key].title}}" rel="nofollow">{{sm[key].link}}</a>&nbsp;|&nbsp;
{% endif %}
{% endfor %}
</div>