Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Oct 18, 2019
1 parent 32e9348 commit 2875327
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions layout/_partials/sidebar/site-overview.swig
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@
{%- for name, link in theme.social %}
<span class="links-of-author-item">
{%- set sidebarURL = link.split('||')[0] | trim %}
{%- if not (theme.social_icons.enable) or (not theme.social_icons.icons_only) %}
{%- set sidebarText = name %}
{%- endif %}
{%- if theme.social_icons.enable %}
{%- set sidebarIcon = '<i class="fa fa-fw fa-' + link.split('||')[1] | trim + '"></i>' %}
{%- endif %}
{%- if theme.social_icons.enable and theme.social_icons.icons_only %}
{%- set sidebarText = '' %}
{%- else %}
{%- set sidebarText = name %}
{%- endif %}
{{ next_url(sidebarURL, sidebarIcon + sidebarText, {title: name + ' &rarr; ' + sidebarURL}) }}
</span>
Expand Down

0 comments on commit 2875327

Please sign in to comment.