1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
{%- assign _author = include.author -%}
<div class="author-links">
<ul class="menu menu--nowrap menu--inline">
{%- if _author.url -%}
<link itemprop="url" href="{{ _author.url }}">
{%- endif -%}
{%- if _author.type == 'organization' -%}
{%- include snippets/get-locale-string.html key='EMAIL_US' -%}
{%- assign _locale_string_email = __return -%}
{%- include snippets/get-locale-string.html key='FOLLOW_US' -%}
{%- assign _locale_string_follow = __return -%}
{%- else -%}
{%- include snippets/get-locale-string.html key='EMAIL_ME' -%}
{%- assign _locale_string_email = __return -%}
{%- include snippets/get-locale-string.html key='FOLLOW_ME' -%}
{%- assign _locale_string_follow = __return -%}
{%- endif -%}
{%- include snippets/get-locale-string.html key='EMAIL_ME' -%}
{%- if _author.email -%}
<li title="{{ _locale_string_email }}">
<a class="button button--circle mail-button" itemprop="email" href="mailto:{{ _author.email }}" target="_blank">
<i class="fas fa-envelope"></i>
</a>
{%- endif -%}
{%- if _author.facebook -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'Facebook' }}">
<a class="button button--circle facebook-button" itemprop="sameAs" href="https://www.facebook.com/{{ _author.facebook }}" target="_blank">
<div class="icon">{%- include svg/icon/social/facebook.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if _author.twitter -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'Twitter' }}">
<a class="button button--circle twitter-button" itemprop="sameAs" href="https://twitter.com/{{ _author.twitter }}" target="_blank">
<div class="icon">{%- include svg/icon/social/twitter.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if _author.weibo -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'Weibo' }}">
<a class="button button--circle weibo-button" itemprop="sameAs" href="https://weibo.com/{{ _author.weibo }}" target="_blank">
<div class="icon">{%- include svg/icon/social/weibo.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if _author.googleplus -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'Google+' }}">
<a class="button button--circle googlepluse-button" itemprop="sameAs" href="https://plus.google.com/u/0/{{ _author.googleplus }}" target="_blank">
<div class="icon">{%- include svg/icon/social/googleplus.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if _author.telegram -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'Telegram' }}">
<a class="button button--circle telegram-button" itemprop="sameAs" href="https://t.me/{{ _author.telegram }}" target="_blank">
<div class="icon">{%- include svg/icon/social/telegram.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if _author.medium -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'Medium' }}">
<a class="button button--circle medium-button" itemprop="sameAs" href="https://medium.com/{{ _author.medium }}" target="_blank">
<div class="icon">{%- include svg/icon/social/medium.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if _author.zhihu -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'Zhihu' }}">
<a class="button button--circle zhihu-button" itemprop="sameAs" href="https://www.zhihu.com/people/{{ _author.zhihu }}" target="_blank">
<div class="icon">{%- include svg/icon/social/zhihu.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if _author.douban -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'Douban' }}">
<a class="button button--circle douban-button" itemprop="sameAs" href="https://www.douban.com/people/{{ _author.douban }}" target="_blank">
<div class="icon">{%- include svg/icon/social/douban.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if _author.linkedin -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'Linkedin' }}">
<a class="button button--circle linkedin-button" itemprop="sameAs" href="https://www.linkedin.com/in/{{ _author.linkedin }}" target="_blank">
<div class="icon">{%- include svg/icon/social/linkedin.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if _author.github -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'Github' }}">
<a class="button button--circle github-button" itemprop="sameAs" href="https://github.com/{{ _author.github }}" target="_blank">
<div class="icon">{%- include svg/icon/social/github.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if site.paths.rss -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'RSS' }}">
<a class="button button--circle rss-button" itemprop="sameAs" href="{{ url }} {{ site.paths.rss }}" target="_blank">
<div class="icon">{%- include svg/icon/social/rss.svg -%}</div>
</a>
</li>
{%- endif -%}
{%- if _author.npm -%}
<li title="{{ _locale_string_follow | replace: '[NAME]', 'npm' }}">
<a class="button button--circle npm-button" itemprop="sameAs" href="https://www.npmjs.com/~{{ _author.npm }}" target="_blank">
<div class="icon">{%- include svg/icon/social/npm.svg -%}</div>
</a>
</li>
{%- endif -%}
</ul>
</div>
|