Added title to social footer links

This commit is contained in:
squidfunk
2020-03-09 21:14:47 +01:00
parent 11901049bc
commit bfea33154f
15 changed files with 28 additions and 19 deletions

View File

@@ -211,7 +211,7 @@
// Social icon
svg {
width: px2rem(16px);
max-height: px2rem(16px);
vertical-align: -25%;
fill: currentColor;
}

View File

@@ -24,9 +24,12 @@
{% if config.extra.social %}
<div class="md-footer-social">
{% for social in config.extra.social %}
{% set _,rest = social.link.split("//") %}
{% set domain = rest.split("/")[0] %}
<a
href="{{ social.link }}"
target="_blank" rel="noopener"
title="{{ domain }}"
class="md-footer-social__link"
>
{% include ".icons/" ~ social.icon ~ ".svg" %}