Make everything in the social list a link
This commit is contained in:
parent
b5360cebc6
commit
d451ad6d6c
2 changed files with 14 additions and 2 deletions
|
@ -2,9 +2,13 @@
|
||||||
{{ range $i, $e := sort .Site.Data.social.accounts "name" }}
|
{{ range $i, $e := sort .Site.Data.social.accounts "name" }}
|
||||||
<div class="col-sm-3 mt-3">
|
<div class="col-sm-3 mt-3">
|
||||||
<div class="card text-center">
|
<div class="card text-center">
|
||||||
<h1 class="display-3"><i class="{{ $e.icon }}"></i></h1>
|
<a href="{{ $e.icon }}" class="colour-invert">
|
||||||
|
<h1 class="display-3"><i class="{{ $e.icon }}"></i></h1>
|
||||||
|
</a>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h3>{{ $e.name }}</h3>
|
<a href="{{ $e.icon }}" class="colour-invert">
|
||||||
|
<h3>{{ $e.name }}</h3>
|
||||||
|
</a>
|
||||||
<a href="{{ $e.link }}">
|
<a href="{{ $e.link }}">
|
||||||
<p>{{ $e.username }}</p>
|
<p>{{ $e.username }}</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -18,6 +18,14 @@ a {
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $black;
|
color: $black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.colour-invert {
|
||||||
|
color: $black;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $primary;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pre code {
|
pre code {
|
||||||
|
|
Loading…
Reference in a new issue