8
8
< div id ="avatar ">
9
9
< a href ="{{ '/' | relative_url }} " alt ="avatar " class ="mx-auto ">
10
10
{% capture avatar_url %}
11
- {%- if site.avatar contains '://' -%}
12
- {{ site.avatar }}
13
- {%- elsif site.img_cdn != '' and site.img_cdn -%}
14
- {{ site.avatar | prepend: site.img_cdn }}
15
- {%- else -%}
16
- {{ site.avatar | relative_url }}
17
- {%- endif -%}
11
+ {%- if site.avatar contains '://' -%}
12
+ {{ site.avatar }}
13
+ {%- elsif site.img_cdn != '' and site.img_cdn -%}
14
+ {{ site.avatar | prepend: site.img_cdn }}
15
+ {%- else -%}
16
+ {{ site.avatar | relative_url }}
17
+ {%- endif -%}
18
18
{% endcapture %}
19
19
< img src ="{{ avatar_url }} " alt ="avatar " onerror ="this.style.display='none' ">
20
20
</ a >
51
51
< div class ="sidebar-bottom mt-auto d-flex flex-wrap justify-content-center ">
52
52
53
53
{% for entry in site.data.contact %}
54
- {% capture url %}
55
- {%- if entry.type == 'github' -%}
56
- https://github.com/{{ site.github.username }}
57
- {%- elsif entry.type == 'twitter' -%}
58
- https://twitter.com/{{ site.twitter.username }}
59
- {%- elsif entry.type == 'email' -%}
60
- {% assign email = site.social.email | split: '@' %}
61
- javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@')
62
- {%- elsif entry.type == 'rss' -%}
63
- {{ "/feed.xml" | relative_url }}
64
- {%- elsif entry.type == 'patreon' -%}
65
- https://patreon.com/{{ site.patreon.username }}
66
- {%- elsif entry.type == 'youtube' -%}
67
- https://www.youtube.com/channel/{{ site.youtube.channelid }}
68
- {%- elsif entry.type == 'twitch' -%}
69
- https://twitch.tv/{{ site.twitch.username }}
70
- {%- elsif entry.type == 'instagram' -%}
71
- https://instagram.com/{{ site.instagram.username }}
72
- {%- elsif entry.type == 'facebook' -%}
73
- https://facebook.com/{{ site.facebook.username }}
74
- {%- elsif entry.type == 'discord' -%}
75
- https://discord.gg/{{ site.discord.invitelink }}
76
- {%- elsif entry.type == 'tiktok' -%}
77
- https://tiktok.com/{{ site.tiktok.username }}
78
- {%- else -%}
79
- {{ entry.url }}
80
- {%- endif -%}
81
- {% endcapture %}
54
+ {% capture url %}
55
+ {%- if entry.type == 'github' -%}
56
+ https://github.com/{{ site.github.username }}
57
+ {%- elsif entry.type == 'twitter' -%}
58
+ https://twitter.com/{{ site.twitter.username }}
59
+ {%- elsif entry.type == 'email' -%}
60
+ {% assign email = site.social.email | split: '@' %}
61
+ javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@')
62
+ {%- elsif entry.type == 'rss' -%}
63
+ {{ "/feed.xml" | relative_url }}
64
+ {%- elsif entry.type == 'patreon' -%}
65
+ https://patreon.com/{{ site.patreon.username }}
66
+ {%- elsif entry.type == 'youtube' -%}
67
+ https://www.youtube.com/channel/{{ site.youtube.channelid }}
68
+ {%- elsif entry.type == 'twitch' -%}
69
+ https://twitch.tv/{{ site.twitch.username }}
70
+ {%- elsif entry.type == 'instagram' -%}
71
+ https://instagram.com/{{ site.instagram.username }}
72
+ {%- elsif entry.type == 'facebook' -%}
73
+ https://facebook.com/{{ site.facebook.username }}
74
+ {%- elsif entry.type == 'discord' -%}
75
+ https://discord.gg/{{ site.discord.invitelink }}
76
+ {%- elsif entry.type == 'tiktok' -%}
77
+ https://tiktok.com/{{ site.tiktok.username }}
78
+ {%- else -%}
79
+ {{ entry.url }}
80
+ {%- endif -%}
81
+ {% endcapture %}
82
82
83
- {% if url %}
84
- < a href ="{{ url }} " aria-label ="{{ entry.type }} "
85
- {% unless site.theme_mode % }class ="order-{{ forloop.index | plus: 2 }} "{% endunless %}
86
- {% unless entry.noblank %}target =" _blank " rel ="noopener "{% endunless %} >
87
- < i class ="{{ entry.icon }} "> </ i >
88
- </ a >
89
- {% endif %}
83
+ {% if url %}
84
+ < a href ="{{ url }} " aria-label ="{{ entry.type }} " {% unless site.theme_mode
85
+ % }class ="order-{{ forloop.index | plus: 2 }} " {% endunless %} {% unless entry.noblank %}target =" _blank "
86
+ rel ="noopener " {% endunless %} >
87
+ < i class ="{{ entry.icon }} "> </ i >
88
+ </ a >
89
+ {% endif %}
90
90
91
91
{% endfor %}
92
92
93
93
{% unless site.theme_mode %}
94
- {% if site.data.contact.size > 0 %}
95
- < span class ="icon-border order-2 "> </ span >
96
- {% endif %}
94
+ {% if site.data.contact.size > 0 %}
95
+ < span class ="icon-border order-2 "> </ span >
96
+ {% endif %}
97
97
98
- < span id ="mode-toggle-wrapper " class ="order-1 ">
99
- {% include mode-toggle.html %}
100
- </ span >
98
+ < span id ="mode-toggle-wrapper " class ="order-1 ">
99
+ {% include mode-toggle.html %}
100
+ </ span >
101
101
{% endunless %}
102
102
103
- < div class ="d-flex flex-row justify-content-center align-items-center ">
104
- < div class ="p-1 ">
105
- < a href ="https://github.com/techno-tim/techno-tim.github.io " target ="_blank " rel ="noopener ">
106
- < i class ="fab fa-github fa-2x "> </ i >
107
- </ a >
108
- </ div >
109
- < div class ="p-1 ">
110
- < div class ="d-flex flex-column align-items-start justify-content-end ">
111
- < div class ="text-sm-left "> {{ site.data.github.stargazers_count}} stars</ div >
112
- < div class ="p-0 "> {{ site.data.github.forks_count}} forks</ div >
113
- </ div >
114
- </ div >
103
+
104
+ < div class ="d-flex flex-wrap justify-content-center ">
105
+ < div class ="p-1 text-small-left "> {{ site.data.github.stargazers_count}} stars</ div >
106
+ < div class ="p-1 "> {{ site.data.github.forks_count}} forks </ div >
115
107
</ div >
116
108
</ div > <!-- .sidebar-bottom -->
117
-
118
- </ div > <!-- #sidebar -->
109
+ </ div > <!-- #sidebar -->
0 commit comments