mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Fix follow_me link
* See: https://github.com/next-theme/hexo-theme-next/issues/131
This commit is contained in:
parent
afb052c39c
commit
5385defde8
@ -1,23 +1,20 @@
|
|||||||
{%- if theme.follow_me %}
|
<div class="followme">
|
||||||
|
<span>{{ __('follow_me.welcome') }}</span>
|
||||||
|
|
||||||
<div class="followme">
|
<div class="social-list">
|
||||||
<span>{{ __('follow_me.welcome') }}</span>
|
{%- 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">
|
<div class="social-item">
|
||||||
{%- for name, value in theme.follow_me %}
|
<a target="_blank" class="social-link" href="{{ url_for(link) }}">
|
||||||
{%- set link = value.split('||')[0] | trim %}
|
<span class="icon">
|
||||||
{%- set icon = value.split('||')[1] | trim if value.split('||')[1] else '' %}
|
<i class="{{ icon }}"></i>
|
||||||
|
</span>
|
||||||
|
|
||||||
<div class="social-item">
|
<span class="label">{{ name }}</span>
|
||||||
<a target="_blank" class="social-link" href="{{ link }}">
|
</a>
|
||||||
<span class="icon">
|
</div>
|
||||||
<i class="{{ icon }}"></i>
|
{%- endfor %}
|
||||||
</span>
|
|
||||||
|
|
||||||
<span class="label">{{ name }}</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{%- endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user