From efb0730e641f575368e7e80fec80be16a03c95f4 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 15 Dec 2023 09:17:18 +0800 Subject: refactor(dir-tree): `material` -> `src/material` --- docs/src/material/templates/partials/social.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/src/material/templates/partials/social.html (limited to 'docs/src/material/templates/partials/social.html') 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 +-#} +
+ {% 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