aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/src/material/templates/partials/social.html
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-12-15 09:17:18 +0800
committer简律纯 <i@jyunko.cn>2023-12-15 09:17:18 +0800
commitefb0730e641f575368e7e80fec80be16a03c95f4 (patch)
tree1732934333d589234eb92ca880364b6e1acfb378 /docs/src/material/templates/partials/social.html
parent31c55c2ea7d7aad1df6748f91101dcf69bb29475 (diff)
downloadinfini-efb0730e641f575368e7e80fec80be16a03c95f4.tar.gz
infini-efb0730e641f575368e7e80fec80be16a03c95f4.zip
refactor(dir-tree): `material` -> `src/material`
Diffstat (limited to 'docs/src/material/templates/partials/social.html')
-rw-r--r--docs/src/material/templates/partials/social.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/src/material/templates/partials/social.html b/docs/src/material/templates/partials/social.html
new file mode 100644
index 00000000..e59fdae6
--- /dev/null
+++ b/docs/src/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>