1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-15 09:01:17 +01:00
mkdocs-material/material/templates/partials/social.html
2023-09-20 13:58:03 +02:00

20 lines
634 B
HTML

{#-
This file was automatically generated - do not edit
-#}
<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 = social.link.split("//") %}
{% set title = url.split("/")[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>