mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 11:35:17 -04:00
Added title to social footer links
This commit is contained in:
@@ -211,7 +211,7 @@
|
||||
|
||||
// Social icon
|
||||
svg {
|
||||
width: px2rem(16px);
|
||||
max-height: px2rem(16px);
|
||||
vertical-align: -25%;
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
@@ -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" %}
|
||||
|
||||
Reference in New Issue
Block a user