1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-27 06:44:10 +01:00
mkdocs-material/material/partials/social.html

16 lines
513 B
HTML
Raw Normal View History

2019-09-28 19:42:54 +02:00
{#-
This file was automatically generated - do not edit
-#}
2021-11-13 13:41:07 +01:00
<div class="md-social">
{% 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 %}
2021-11-13 13:41:07 +01:00
<a href="{{ social.link }}" target="_blank" rel="noopener" title="{{ title | e }}" class="md-social__link">
{% include ".icons/" ~ social.icon ~ ".svg" %}
</a>
{% endfor %}
</div>