Skip to content

Commit ce361f4

Browse files
authored
FIX: move fb & vk like buttons from top to footer.
It's better when user read article and click like at the end of reading if this article liked him.
1 parent 1841998 commit ce361f4

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

layout/_macro/post.swig

+14-12
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,6 @@
172172
{% endif %}
173173
{% endif %}
174174

175-
{% if not is_index and theme.facebook_sdk.enable and theme.facebook_sdk.like_button %}
176-
<span class="post-meta-divider">|</span>
177-
<div class="fb-like" data-layout="button_count" data-share="true"></div>
178-
{% endif %}
179-
180-
{% if not is_index and theme.vkontakte_api.enable and theme.vkontakte_api.like %}
181-
{% if post.categories and post.categories.length and theme.post_meta.categories %}
182-
<span class="post-meta-divider">|</span>
183-
{% endif %}
184-
<div id="vk_like"></div>
185-
{% endif %}
186-
187175
{# LeanCould PageView #}
188176
{% if theme.leancloud_visitors.enable %}
189177
<span id="{{ url_for(post.path) }}" class="leancloud_visitors" data-flag-title="{{ post.title }}">
@@ -301,6 +289,20 @@
301289
</div>
302290
{% endif %}
303291

292+
{% if (theme.vkontakte_api.enable and theme.vkontakte_api.like) or (theme.facebook_sdk.enable and theme.facebook_sdk.like_button) %}
293+
<div class="social-like">
294+
{% if not is_index and theme.vkontakte_api.enable and theme.vkontakte_api.like %}
295+
<div class="vk_like">
296+
<span id="vk_like"></span>
297+
</div>
298+
{% endif %}
299+
300+
{% if not is_index and theme.facebook_sdk.enable and theme.facebook_sdk.like_button %}
301+
<div class="fb-like" data-layout="button_count" data-share="true"></div>
302+
{% endif %}
303+
</div>
304+
{% endif %}
305+
304306
{% if not is_index and (post.prev or post.next) %}
305307
<div class="post-nav">
306308
<div class="post-nav-next post-nav-item">

0 commit comments

Comments
 (0)