Skip to content

Commit a658603

Browse files
committed
Update social icons in author side-bar.
1 parent 0b14ff9 commit a658603

File tree

3 files changed

+35
-13
lines changed

3 files changed

+35
-13
lines changed

_includes/_author-bio.html

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,34 @@
1212

1313
<h3 itemprop="name">{{ author.name }}</h3>
1414
<p>{{ author.bio }}</p>
15-
{% if author.email %}<a href="mailto:{{ author.email }}" class="author-social" target="_blank"><i class="fa fa-fw fa-envelope-square"></i>Email</a>{% endif %}
16-
{% if author.twitter %}<a href="http://twitter.com/{{ author.twitter }}" class="author-social" target="_blank"><i class="fa fa-fw fa-twitter-square"></i> Twitter</a>{% endif %}
15+
<div class="author-social-outer">
16+
{% if author.github %}<a href="http://github.com/{{ author.github }}" class="author-social" target="_blank">
17+
<span class="fa-stack">
18+
<i class="fa fa-github fa-2x"></i>
19+
</span>
20+
</a>{% endif %}
21+
{% if author.email %}<a href="mailto:{{ author.email }}" class="author-social" target="_blank">
22+
<span class="fa-stack">
23+
<i class="fa fa-circle fa-stack-2x"></i>
24+
<i class="fa fa-envelope fa-stack-1x fa-inverse"></i>
25+
</span>
26+
</a>{% endif %}
27+
{% if author.twitter %}<a href="http://twitter.com/{{ author.twitter }}" class="author-social" target="_blank">
28+
<span class="fa-stack">
29+
<i class="fa fa-circle fa-stack-2x"></i>
30+
<i class="fa fa-twitter fa-stack-1-3x fa-inverse"></i>
31+
</span>
32+
</a>{% endif %}
33+
1734
{% if author.facebook %}<a href="http://facebook.com/{{ author.facebook }}" class="author-social" target="_blank"><i class="fa fa-fw fa-facebook-square"></i> Facebook</a>{% endif %}
1835
{% if author.google.plus %}<a href="http://plus.google.com/+{{ author.google.plus }}" class="author-social" target="_blank"><i class="fa fa-fw fa-google-plus-square"></i> Google+</a>{% endif %}
1936
{% if author.linkedin %}<a href="http://linkedin.com/in/{{ author.linkedin }}" class="author-social" target="_blank"><i class="fa fa-fw fa-linkedin-square"></i> LinkedIn</a>{% endif %}
2037
{% if author.instagram %}<a href="http://instagram.com/{{ author.instagram }}" class="author-social" target="_blank"><i class="fa fa-fw fa-instagram"></i> Instagram</a>{% endif %}
2138
{% if author.tumblr %}<a href="http://{{ author.tumblr }}.tumblr.com" class="author-social" target="_blank"><i class="fa fa-fw fa-tumblr-square"></i> Tumblr</a>{% endif %}
22-
{% if author.github %}<a href="http://github.com/{{ author.github }}" class="author-social" target="_blank"><i class="fa fa-fw fa-github"></i> Github</a>{% endif %}
2339
{% if author.stackoverflow %}<a href="http://stackoverflow.com/users/{{ author.stackoverflow }}" class="author-social" target="_blank"><i class="fa fa-fw fa-stack-overflow"></i> Stackoverflow</a>{% endif %}
24-
{% if author.lastfm %}<a href="http://lastfm.com/user/{{ author.lastfm }}" class="author-social" target="_blank"><i class="fa fa-fw fa-music"></i> Last.fm</a>{% endif %}
25-
{% if author.dribbble %}<a href="http://dribbble.com/{{ author.dribbble }}" class="author-social" target="_blank"><i class="fa fa-fw fa-dribbble"></i> Dribbble</a>{% endif %}
2640
{% if author.pinterest %}<a href="http://www.pinterest.com/{{ author.pinterest }}" class="author-social" target="_blank"><i class="fa fa-fw fa-pinterest"></i> Pinterest</a>{% endif %}
27-
{% if author.foursquare %}<a href="http://foursquare.com/{{ author.foursquare }}" class="author-social" target="_blank"><i class="fa fa-fw fa-foursquare"></i> Foursquare</a>{% endif %}
28-
{% if author.steam %}<a href="http://steamcommunity.com/id/{{ author.steam }}" class="author-social" target="_blank"><i class="fa fa-fw fa-steam-square"></i> Steam</a>{% endif %}
2941
{% if author.youtube %}<a href="https://youtube.com/user/{{ author.youtube }}" class="author-social" target="_blank"><i class="fa fa-fw fa-youtube-square"></i> Youtube</a>{% endif %}
3042
{% if author.soundcloud %}<a href="http://soundcloud.com/{{ author.soundcloud }}" class="author-social" target="_blank"><i class="fa fa-fw fa-soundcloud"></i> Soundcloud</a>{% endif %}
31-
{% if author.weibo %}<a href="http://www.weibo.com/{{ author.weibo }}" class="author-social" target="_blank"><i class="fa fa-fw fa-weibo"></i> Weibo</a>{% endif %}
3243
{% if author.flickr %}<a href="http://www.flickr.com/{{ author.flickr }}" class="author-social" target="_blank"><i class="fa fa-fw fa-flickr"></i> Flickr</a>{% endif %}
33-
</div>
44+
</div>
45+
</div>

_sass/page.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,19 @@ $button-size: 1.5rem;
359359
}
360360

361361
/* Default social media links in author sidebar */
362+
363+
.article-author-side {
364+
.author-social-outer {
365+
a {
366+
display: inline;
367+
}
368+
}
369+
}
370+
362371
.author-social {
363372
display: block;
364373
margin-bottom: 5px;
365-
@include font-rem(14);
374+
@include font-rem(10);
366375
color: $black;
367376
&:visited {
368377
color: $black;
@@ -374,8 +383,8 @@ $button-size: 1.5rem;
374383
@include translate(0, 2px);
375384
}
376385
.fa {
377-
margin-right: 5px;
378-
}
386+
margin-right: 5px;
387+
}
379388
}
380389

381390
/* Author sidebar */

_sass/vendor/font-awesome/_stacked.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
line-height: 2em;
1010
vertical-align: middle;
1111
}
12-
.#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x {
12+
.#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x, .#{$fa-css-prefix}-stack-1-3x {
1313
position: absolute;
1414
left: 0;
1515
width: 100%;
1616
text-align: center;
1717
}
1818
.#{$fa-css-prefix}-stack-1x { line-height: inherit; }
19+
.#{$fa-css-prefix}-stack-1-3x { font-size: 1.3em; line-height: inherit; }
1920
.#{$fa-css-prefix}-stack-2x { font-size: 2em; }
2021
.#{$fa-css-prefix}-inverse { color: $fa-inverse; }

0 commit comments

Comments
 (0)