aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/src/templates/partials/social.html
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-12-15 10:08:56 +0800
committerGitHub <noreply@github.com>2023-12-15 10:08:56 +0800
commitd697a1774ad8571e9314e3bd85aa141170587d19 (patch)
treecd3c3d84e3288db1f8e574a0b4dfb85e2e40f764 /docs/src/templates/partials/social.html
parent4943d5eff52a75caaccda6a1d84183032f06be26 (diff)
parent4dafb0f0a81255193f2a44df5d203239325e2236 (diff)
downloadinfini-d697a1774ad8571e9314e3bd85aa141170587d19.tar.gz
infini-d697a1774ad8571e9314e3bd85aa141170587d19.zip
Merge branch 'master' into master
Diffstat (limited to 'docs/src/templates/partials/social.html')
-rw-r--r--docs/src/templates/partials/social.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/src/templates/partials/social.html b/docs/src/templates/partials/social.html
new file mode 100644
index 00000000..e59fdae6
--- /dev/null
+++ b/docs/src/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>