You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: layout/_macro/post.swig
+12-2
Original file line number
Diff line number
Diff line change
@@ -207,7 +207,9 @@
207
207
{% if theme.post_wordcount.wordcount or theme.post_wordcount.min2read %}
208
208
<div class="post-wordcount">
209
209
{% if theme.post_wordcount.wordcount %}
210
-
<span class="post-meta-divider">|</span>
210
+
{% if not theme.post_wordcount.separated_meta %}
211
+
<span class="post-meta-divider">|</span>
212
+
{% endif %}
211
213
<span class="post-meta-item-icon">
212
214
<i class="fa fa-file-word-o"></i>
213
215
</span>
@@ -337,7 +339,14 @@
337
339
</div>
338
340
{% endif %}
339
341
340
-
{% if not is_index %}
342
+
{% if not is_index and (theme.rating.enable) or (theme.vkontakte_api.enable and theme.vkontakte_api.like) or (theme.facebook_sdk.enable and theme.facebook_sdk.like_button) %}
343
+
<div class="post-widgets">
344
+
{% if theme.rating.enable %}
345
+
<div class="wp_rating">
346
+
<div id="wpac-rating"></div>
347
+
</div>
348
+
{% endif %}
349
+
341
350
{% if (theme.vkontakte_api.enable and theme.vkontakte_api.like) or (theme.facebook_sdk.enable and theme.facebook_sdk.like_button) %}
342
351
<div class="social-like">
343
352
{% if theme.vkontakte_api.enable and theme.vkontakte_api.like %}
@@ -353,6 +362,7 @@
353
362
{% endif %}
354
363
</div>
355
364
{% endif %}
365
+
</div>
356
366
{% endif %}
357
367
358
368
{% if not is_index and (post.prev or post.next) %}
Copy file name to clipboardexpand all lines: source/css/_common/components/post/post.styl
+3-1
Original file line number
Diff line number
Diff line change
@@ -44,4 +44,6 @@
44
44
@import"post-eof";
45
45
@import"post-gallery";
46
46
@import"post-reward" if hexo-config('alipay') or hexo-config('wechatpay');
47
-
@import"post-copyright.styl" if hexo-config('post_copyright.enable')
47
+
@import"post-copyright" if hexo-config('post_copyright.enable');
48
+
@import"post-wordcount" if !hexo-config('post_wordcount.separated_meta');
49
+
@import"post-widgets" if (hexo-config('facebook_sdk.enable') and hexo-config('facebook_sdk.like_button')) or (hexo-config('vkontakte_api.enable') and hexo-config('vkontakte_api.like')) or hexo-config('rating.enable');
0 commit comments