Add optional location to author sidebar

This commit is contained in:
Michael Rose 2016-04-10 12:16:10 -04:00
parent 4711a23161
commit e5d5685ad5
4 changed files with 10 additions and 3 deletions

View file

@ -65,6 +65,7 @@ author:
name : *name
avatar : "bio-photo.jpg"
bio : *description
location : "Buffalo, NY"
email : *email
uri : "https://mademistakes.com"
codepen :

View file

@ -20,8 +20,11 @@
<div class="author__urls-wrapper">
<button class="btn btn--inverse">Follow</button>
<ul class="author__urls social-icons">
{% if author.location %}
<li><i class="fa fa-fw fa-map-marker" aria-hidden="true"></i> {{ author.location }}</li>
{% endif %}
{% if author.uri %}
<li><a href="{{ author.uri }}"><i class="fa fa-fw fa-globe" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].website_label }}</a></li>
<li><a href="{{ author.uri }}"><i class="fa fa-fw fa-chain" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].website_label }}</a></li>
{% endif %}
{% if author.email %}
<li><a href="mailto:{{ author.email }}"><i class="fa fa-fw fa-envelope-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].email_label }}</a></li>

View file

@ -204,6 +204,10 @@
}
}
li {
white-space: nowrap;
}
a {
display: block;
margin-bottom: 5px;
@ -213,7 +217,6 @@
color: inherit;
font-size: $type-size-5;
text-decoration: none;
white-space: nowrap;
&:hover {
text-decoration: underline;

File diff suppressed because one or more lines are too long