This commit is contained in:
CreaRobotics committed 2026-03-02 11:34:40 +01:00
1 parent 6ccab0347b
commit 954a2fd6d6
18684 files changed
+601012 -190

No files matched your search

@@ -0,0 +1,27 @@
{#-
This file was automatically generated - do not edit
-#}
{% macro split_and_get(value, sep, index) %}
{%- if value.split is defined -%}
{%- set parts = value.split(sep) -%}
{%- else -%}
{%- set parts = value | split(sep) -%}
{%- endif -%}
{{- parts[index] -}}
{% endmacro %}
<div class="md-social">
{% for social in config.extra.social %}
{% set rel = "noopener" %}
{% if "mastodon" in social.icon %}
{% set rel = rel ~ " me" %}
{% endif %}
{% set title = social.name %}
{% if not title and "//" in social.link %}
{% set url = split_and_get(social.link, "//", 1) %}
{% set title = split_and_get(url, "/", 0) %}
{% endif %}
<a href="{{ social.link }}" target="_blank" rel="{{ rel }}" title="{{ title | e }}" class="md-social__link">
{% include ".icons/" ~ social.icon ~ ".svg" %}
</a>
{% endfor %}
</div>