Files
website-template/theme-overrides/partials/article_social.html
Jon Lockwood baa7b51787 refactor(theme): migrated from website repo
migrated the files required to create the themes
for this mkdocs site.

MR !1 #1
2022-08-28 12:31:12 +09:30

17 lines
628 B
HTML
Executable File

{% 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 %}