Fix follow_me link

* See: https://github.com/next-theme/hexo-theme-next/issues/131
This commit is contained in:
Mimi 2020-10-25 12:01:29 +08:00
parent afb052c39c
commit 5385defde8

View File

@ -1,6 +1,4 @@
{%- if theme.follow_me %} <div class="followme">
<div class="followme">
<span>{{ __('follow_me.welcome') }}</span> <span>{{ __('follow_me.welcome') }}</span>
<div class="social-list"> <div class="social-list">
@ -9,7 +7,7 @@
{%- set icon = value.split('||')[1] | trim if value.split('||')[1] else '' %} {%- set icon = value.split('||')[1] | trim if value.split('||')[1] else '' %}
<div class="social-item"> <div class="social-item">
<a target="_blank" class="social-link" href="{{ link }}"> <a target="_blank" class="social-link" href="{{ url_for(link) }}">
<span class="icon"> <span class="icon">
<i class="{{ icon }}"></i> <i class="{{ icon }}"></i>
</span> </span>
@ -19,5 +17,4 @@
</div> </div>
{%- endfor %} {%- endfor %}
</div> </div>
</div> </div>
{%- endif %}