the main website would not build due to requiring the extra.blog config. nofusscomputing/infrastructure/website!8 !2
17 lines
628 B
HTML
17 lines
628 B
HTML
{% if config.extra.social %}
|
|
{% set ns = namespace() %}
|
|
{% for social in config.extra.social %}
|
|
{% set title = social.name %}
|
|
{% if not title and "//" in social.link %}
|
|
{% set _,url = social.link.split("//") %}
|
|
{% set title = url.split("/")[0] %}
|
|
{% endif %}
|
|
{% if ns.line_break is defined %}
|
|
{{ ns.line_break }}
|
|
{% endif %}
|
|
<a href="{{ social.link }}" target="_blank" rel="noopener" title="{{ title | e }}" class="twemoji">
|
|
{% include ".icons/" ~ social.icon ~ ".svg" %}
|
|
</a>
|
|
{% set ns.line_break = " · " %}
|
|
{% endfor %}
|
|
{% endif %} |