Add localized labels for "website" and "email" author sidebar

This commit is contained in:
Michael Rose 2016-03-25 10:48:08 -04:00
parent d0a29ff4b4
commit 646454db24
2 changed files with 4 additions and 2 deletions

View file

@ -22,6 +22,8 @@ en: &DEFAULT_EN
follow_label : "Follow:"
feed_label : "Feed"
powered_by : "Powered by"
website_label : "Website"
email_label : "Email"
en_US:
<<: *DEFAULT_EN
en_UK:

View file

@ -21,10 +21,10 @@
<button class="btn btn--inverse btn--small">Follow</button>
<ul class="author__urls social-icons">
{% if author.uri %}
<li><a href="{{ author.uri }}" target="_blank"><i class="fa fa-fw fa-globe"></i>Website</a></li>
<li><a href="{{ author.uri }}" target="_blank"><i class="fa fa-fw fa-globe"></i> {{ site.data.ui-text[site.locale].website_label }}</a></li>
{% endif %}
{% if author.email %}
<li><a href="mailto:{{ author.email }}" target="_blank"><i class="fa fa-fw fa-envelope-square"></i> Email</a></li>
<li><a href="mailto:{{ author.email }}" target="_blank"><i class="fa fa-fw fa-envelope-square"></i> {{ site.data.ui-text[site.locale].email_label }}</a></li>
{% endif %}
{% if author.twitter %}
<li><a href="http://twitter.com/{{ author.twitter }}" target="_blank"><i class="fa fa-fw fa-twitter-square"></i> Twitter</a></li>