diff options
| author | 2023-10-07 06:48:07 +0800 | |
|---|---|---|
| committer | 2023-10-07 06:48:07 +0800 | |
| commit | 991fd7a6d67ee017c57beaaa21fc31c4bee7944d (patch) | |
| tree | e895202203fcaa50b0052f60ef6fc7d6d2928cf9 /material/templates/partials/social.html | |
| parent | d62900046bb6f754a8e6e7e670a66a90134055d9 (diff) | |
| download | infini-991fd7a6d67ee017c57beaaa21fc31c4bee7944d.tar.gz infini-991fd7a6d67ee017c57beaaa21fc31c4bee7944d.zip | |
feat(version): versions
Diffstat (limited to 'material/templates/partials/social.html')
| -rw-r--r-- | material/templates/partials/social.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/material/templates/partials/social.html b/material/templates/partials/social.html new file mode 100644 index 00000000..e59fdae6 --- /dev/null +++ b/material/templates/partials/social.html @@ -0,0 +1,19 @@ +{#- + 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> |
