Skip to content

Commit

Permalink
Fix follow_me link
Browse files Browse the repository at this point in the history
* See: #131
  • Loading branch information
stevenjoezhang committed Oct 25, 2020
1 parent afb052c commit 5385def
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions layout/_partials/post/post-followme.njk
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
{%- if theme.follow_me %}
<div class="followme">
<span>{{ __('follow_me.welcome') }}</span>

<div class="followme">
<span>{{ __('follow_me.welcome') }}</span>
<div class="social-list">
{%- for name, value in theme.follow_me %}
{%- set link = value.split('||')[0] | trim %}
{%- set icon = value.split('||')[1] | trim if value.split('||')[1] else '' %}

<div class="social-list">
{%- for name, value in theme.follow_me %}
{%- set link = value.split('||')[0] | trim %}
{%- set icon = value.split('||')[1] | trim if value.split('||')[1] else '' %}
<div class="social-item">
<a target="_blank" class="social-link" href="{{ url_for(link) }}">
<span class="icon">
<i class="{{ icon }}"></i>
</span>

<div class="social-item">
<a target="_blank" class="social-link" href="{{ link }}">
<span class="icon">
<i class="{{ icon }}"></i>
</span>

<span class="label">{{ name }}</span>
</a>
</div>
{%- endfor %}
</div>
<span class="label">{{ name }}</span>
</a>
</div>
{%- endfor %}
</div>
{%- endif %}
</div>

0 comments on commit 5385def

Please sign in to comment.