From 991fd7a6d67ee017c57beaaa21fc31c4bee7944d Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sat, 7 Oct 2023 06:48:07 +0800 Subject: feat(version): versions --- src/templates/partials/social.html | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/templates/partials/social.html (limited to 'src/templates/partials/social.html') diff --git a/src/templates/partials/social.html b/src/templates/partials/social.html new file mode 100644 index 00000000..5d2c4017 --- /dev/null +++ b/src/templates/partials/social.html @@ -0,0 +1,48 @@ + + + +
+ {% 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 %} + + {% include ".icons/" ~ social.icon ~ ".svg" %} + + {% endfor %} +
-- cgit v1.2.3-70-g09d2