{# def url: str, label: str = "" #} {% do attrs.set(href=url, target="_blank") %} {% set icon = url.replace("http://", "").replace("https://", "").split(".")[0] %}
{% if icon == "github" -%} {% elif icon == "gitlab" -%} {%- else -%} {%- endif %}
{{ label or url.split("/", 3)[-1] }}