~xdavidwu/xdavidwu.link

646454db2482da0b6ddeacfddd120f78f925a812 — Michael Rose 8 years ago d0a29ff
Add localized labels for "website" and "email" author sidebar
2 files changed, 4 insertions(+), 2 deletions(-)

M _data/ui-text.yml
M _includes/author-profile.html
M _data/ui-text.yml => _data/ui-text.yml +2 -0
@@ 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:

M _includes/author-profile.html => _includes/author-profile.html +2 -2
@@ 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>