File tree 9 files changed +88
-2
lines changed
source/css/_common/components/post
9 files changed +88
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,6 @@ social:
191
191
# YouTube: https://youtube.com/yourname || youtube
192
192
# Instagram: https://instagram.com/yourname || instagram
193
193
# Skype: skype:yourname?call|chat || skype
194
- # RSS: /atom.xml || rss
195
194
196
195
social_icons :
197
196
enable : true
@@ -277,6 +276,14 @@ reward:
277
276
# alipay: /images/alipay.png
278
277
# bitcoin: /images/bitcoin.png
279
278
279
+ # Subscribe through Telegram Channel, Twitter, etc.
280
+ # Usage: `Key: permalink || icon (Font Awesome)
281
+ follow_me :
282
+ # Twitter: https://twitter.com/username || twitter
283
+ # Telegram: https://t.me/channel_name || telegram
284
+ # Wechat: /images/wechat_channel.jpg || wechat
285
+ # RSS: /atom.xml || rss
286
+
280
287
# Related popular posts
281
288
# Dependencies: https://github.com/tea3/hexo-related-popular-posts
282
289
related_posts :
@@ -669,7 +676,6 @@ rating:
669
676
# Go to https://www.addthis.com/dashboard to customize your tools.
670
677
add_this_id :
671
678
672
-
673
679
# ---------------------------------------------------------------
674
680
# Statistics and Analytics
675
681
# See: https://theme-next.org/docs/third-party-services/statistics-and-analytics
Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ reward:
89
89
alipay : Alipay
90
90
bitcoin : Bitcoin
91
91
92
+ follow_me :
93
+ welcome : Welcome to my other publishing channels
94
+
92
95
accessibility :
93
96
nav_toggle : Toggle navigation bar
94
97
prev_page : Previous page
Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ reward:
76
76
wechatpay : 微信支付
77
77
alipay : 支付宝
78
78
bitcoin : 比特币
79
+ follow_me :
80
+ welcome : 欢迎关注我的其它发布渠道
79
81
accessibility :
80
82
nav_toggle : 切换导航栏
81
83
prev_page : 上一页
Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ reward:
76
76
wechatpay : 微信支付
77
77
alipay : 支付寶
78
78
bitcoin : 比特幣
79
+ follow_me :
80
+ welcome : 歡迎關注我的其它發布渠道
79
81
accessibility :
80
82
nav_toggle : 切換導航欄
81
83
prev_page : 上一頁
Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ reward:
76
76
wechatpay : 微信支付
77
77
alipay : 支付寶
78
78
bitcoin : 比特幣
79
+ follow_me :
80
+ welcome : 歡迎關注我的其它發布渠道
79
81
accessibility :
80
82
nav_toggle : 切換導航欄
81
83
prev_page : 上一頁
Original file line number Diff line number Diff line change 228
228
{{ partial('_partials/post/post-copyright.swig') }}
229
229
{%- endif %}
230
230
231
+ {%- if theme.follow_me %}
232
+ {{ partial('_partials/post/post-followme.swig', {}, {cache: theme.cache.enable}) }}
233
+ {%- endif %}
234
+
231
235
<footer class="post-footer">
232
236
{%- if post.tags and post.tags.length %}
233
237
{%- if theme.tag_icon %}
Original file line number Diff line number Diff line change
1
+ {%- if theme.follow_me %}
2
+
3
+ <div class="followme">
4
+ <p>{{ __('follow_me.welcome') }}</p>
5
+
6
+ <div class="social-list">
7
+ {%- for name, value in theme.follow_me %}
8
+ {%- set link = value.split('||')[0] | trim %}
9
+ {%- set icon = value.split('||')[1] | trim %}
10
+
11
+ <div class="social-item">
12
+ <a target="_blank" class="social-link" href="{{ link }}">
13
+ <span class="icon">
14
+ <i class="fa fa-{{ icon }}"></i>
15
+ </span>
16
+
17
+ <span class="label">{{ name }}</span>
18
+ </a>
19
+ </div>
20
+ {%- endfor %}
21
+ </div>
22
+ </div>
23
+ {%- endif %}
Original file line number Diff line number Diff line change
1
+ .followme {
2
+ align-items : center ;
3
+ background : $whitesmoke ;
4
+ border-left : 3px solid $red ;
5
+ color : $grey ;
6
+ display : flex ;
7
+ flex-direction : column ;
8
+ margin : 2em 0 1em 0 ;
9
+ padding : 1em 1.5em ;
10
+
11
+ .social-list {
12
+ align-items : center ;
13
+ display : flex ;
14
+ flex-wrap : wrap ;
15
+
16
+ .social-item {
17
+ margin : 0.5em 2em ;
18
+ }
19
+ +tablet-mobile() {
20
+ .social-item {
21
+ margin : 0.5em 0.75em ;
22
+ }
23
+ }
24
+
25
+ .social-link {
26
+ border : none ;
27
+ display :inline-block ;
28
+ text-align : center ;
29
+
30
+ .icon {
31
+ font-size : 1.75em ;
32
+ height : 1.75em ;
33
+ width : 1.75em ;
34
+ }
35
+
36
+ .label {
37
+ display : block ;
38
+ font-size : 14px ;
39
+ }
40
+ }
41
+ }
42
+ }
Original file line number Diff line number Diff line change 69
69
@import 'post-reward' ;
70
70
71
71
@import 'post-copyright' if (hexo-config('creative_commons.post' ));
72
+
73
+ @import 'post-followme' if (hexo-config('follow_me' ));
You can’t perform that action at this time.
0 commit comments