Add optional location to author sidebar
This commit is contained in:
parent
4711a23161
commit
e5d5685ad5
4 changed files with 10 additions and 3 deletions
|
@ -65,6 +65,7 @@ author:
|
||||||
name : *name
|
name : *name
|
||||||
avatar : "bio-photo.jpg"
|
avatar : "bio-photo.jpg"
|
||||||
bio : *description
|
bio : *description
|
||||||
|
location : "Buffalo, NY"
|
||||||
email : *email
|
email : *email
|
||||||
uri : "https://mademistakes.com"
|
uri : "https://mademistakes.com"
|
||||||
codepen :
|
codepen :
|
||||||
|
|
|
@ -20,8 +20,11 @@
|
||||||
<div class="author__urls-wrapper">
|
<div class="author__urls-wrapper">
|
||||||
<button class="btn btn--inverse">Follow</button>
|
<button class="btn btn--inverse">Follow</button>
|
||||||
<ul class="author__urls social-icons">
|
<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 %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% if author.email %}
|
{% 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>
|
<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>
|
||||||
|
|
|
@ -204,6 +204,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
@ -213,7 +217,6 @@
|
||||||
color: inherit;
|
color: inherit;
|
||||||
font-size: $type-size-5;
|
font-size: $type-size-5;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue