refactor(theme): migrated from website repo

migrated the files required to create the themes
for this mkdocs site.

MR !1 #1
This commit is contained in:
2022-08-28 12:31:12 +09:30
parent fae1dad68d
commit baa7b51787
22 changed files with 1514 additions and 0 deletions

View File

@ -0,0 +1,17 @@
{% if config.extra.social %}
{% set ns = namespace() %}
{% for social in config.extra.social %}
{% set title = social.name %}
{% if not title and "//" in social.link %}
{% set _,url = social.link.split("//") %}
{% set title = url.split("/")[0] %}
{% endif %}
{% if ns.line_break is defined %}
{{ ns.line_break }}
{% endif %}
<a href="{{ social.link }}" target="_blank" rel="noopener" title="{{ title | e }}" class="twemoji">
{% include ".icons/" ~ social.icon ~ ".svg" %}
</a>
{% set ns.line_break = " · " %}
{% endfor %}
{% endif %}