2019-09-30 14:38:41 +02:00
|
|
|
<!--
|
|
|
|
The Side Bar
|
2020-01-02 14:17:49 +01:00
|
|
|
v2.0
|
|
|
|
https://github.com/cotes2020/jekyll-theme-chirpy
|
2019-09-30 14:38:41 +02:00
|
|
|
© 2017-2019 Cotes Chung
|
|
|
|
MIT License
|
|
|
|
-->
|
|
|
|
|
2019-12-31 16:17:27 +01:00
|
|
|
<div id="nav-wrapper">
|
2020-11-21 21:24:09 +01:00
|
|
|
|
2019-12-31 16:17:27 +01:00
|
|
|
<div id="profile-wrapper" class="d-flex flex-column">
|
2019-11-11 16:02:38 +01:00
|
|
|
<div id="avatar" class="d-flex justify-content-center">
|
2019-10-21 07:18:25 +02:00
|
|
|
<a href="{{ site.baseurl }}/" alt="avatar">
|
2020-01-05 21:11:30 +01:00
|
|
|
{% assign avatar_url = site.avatar %}
|
|
|
|
{% capture start %}{{ site.avatar | slice: 0 }}{% endcapture %}
|
|
|
|
{% if start == '/' %}
|
|
|
|
{% assign avatar_url = avatar_url | prepend: site.baseurl %}
|
2019-09-30 14:38:41 +02:00
|
|
|
{% endif %}
|
2020-06-02 10:18:40 +02:00
|
|
|
<img src="{{ avatar_url }}" alt="avatar" onerror="this.style.display='none'">
|
2019-09-30 14:38:41 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
2019-11-11 16:02:38 +01:00
|
|
|
|
|
|
|
<div class="profile-text mt-3">
|
2020-05-31 20:31:13 +02:00
|
|
|
<div class="site-title">
|
2020-05-28 19:55:57 +02:00
|
|
|
<a href="{{ '/' | relative_url }}">{{- site.title -}}</a>
|
2019-11-11 16:02:38 +01:00
|
|
|
</div>
|
2020-05-31 20:31:13 +02:00
|
|
|
<div class="site-subtitle font-italic">{{- site.tagline -}}</div>
|
2019-11-11 16:02:38 +01:00
|
|
|
</div>
|
2020-11-21 21:24:09 +01:00
|
|
|
</div><!-- #profile-wrapper -->
|
2019-09-30 14:38:41 +02:00
|
|
|
|
2019-11-11 16:02:38 +01:00
|
|
|
<ul class="nav flex-column">
|
2020-11-21 21:24:09 +01:00
|
|
|
<!-- home -->
|
|
|
|
<li class="nav-item d-flex justify-content-center {% if page.layout == 'home' %}active{% endif %}">
|
2020-11-22 19:46:04 +01:00
|
|
|
<a href="{{ '/' | relative_url }}" class="nav-link d-flex justify-content-center align-items-center w-100">
|
2020-11-21 21:24:09 +01:00
|
|
|
<i class="fa-fw fas fa-home ml-xl-3 mr-xl-3 unloaded"></i>
|
|
|
|
<span>{{ "HOME" }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<!-- the real tabs -->
|
|
|
|
{% for tab in site.tabs %}
|
|
|
|
<li class="nav-item d-flex justify-content-center {% if tab.url == page.url %}active{% endif %}">
|
2020-11-22 19:46:04 +01:00
|
|
|
<a href="{{ tab.url | relative_url }}" class="nav-link d-flex justify-content-center align-items-center w-100">
|
2020-11-21 21:24:09 +01:00
|
|
|
<i class="fa-fw {{ tab.icon }} ml-xl-3 mr-xl-3 unloaded"></i>
|
|
|
|
<span>{{ tab.title | upcase }}</span>
|
2019-09-30 14:38:41 +02:00
|
|
|
</a>
|
|
|
|
</li> <!-- .nav-item -->
|
2020-11-21 21:24:09 +01:00
|
|
|
{% endfor %}
|
2019-09-30 14:38:41 +02:00
|
|
|
|
|
|
|
</ul> <!-- ul.nav.flex-column -->
|
|
|
|
|
2019-12-31 16:17:27 +01:00
|
|
|
</div><!-- #nav-wrapper -->
|
2019-09-30 14:38:41 +02:00
|
|
|
|
2020-02-19 17:31:28 +01:00
|
|
|
<div class="sidebar-bottom d-flex flex-wrap justify-content-around mt-4">
|
2020-02-13 10:46:05 +01:00
|
|
|
|
2020-12-06 18:14:40 +01:00
|
|
|
{% unless site.theme_mode %}
|
2020-02-16 20:06:38 +01:00
|
|
|
<span id="mode-toggle-wrapper">
|
2020-02-14 16:36:38 +01:00
|
|
|
{% include mode-toggle.html %}
|
2020-02-13 10:46:05 +01:00
|
|
|
</span>
|
2020-02-19 17:31:28 +01:00
|
|
|
<span class="icon-border"></span>
|
2020-12-06 18:14:40 +01:00
|
|
|
{% endunless %}
|
2020-02-13 10:46:05 +01:00
|
|
|
|
2020-05-23 09:54:11 +02:00
|
|
|
{% for entry in site.data.contact %}
|
|
|
|
{% capture url %}
|
|
|
|
{%- if entry.type == 'github' -%}
|
|
|
|
https://github.com/{{ site.github.username }}
|
|
|
|
{%- elsif entry.type == 'twitter' -%}
|
|
|
|
https://twitter.com/{{ site.twitter.username }}
|
|
|
|
{%- elsif entry.type == 'email' -%}
|
|
|
|
{% assign email = site.social.email | split: '@' %}
|
2020-10-18 18:10:27 +02:00
|
|
|
javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@')
|
2020-05-23 09:54:11 +02:00
|
|
|
{%- elsif entry.type == 'rss' -%}
|
|
|
|
{{ "/feed.xml" | relative_url }}
|
|
|
|
{%- else -%}
|
|
|
|
{{ entry.url }}
|
|
|
|
{%- endif -%}
|
|
|
|
{% endcapture %}
|
|
|
|
|
2020-12-04 19:44:28 +01:00
|
|
|
{% if url %}
|
2020-10-27 09:20:22 +01:00
|
|
|
<a href="{{ url }}" aria-label="{{ entry.type }}" {% unless entry.noblank %}target="_blank" rel="noopener"{% endunless %}>
|
2020-05-23 09:54:11 +02:00
|
|
|
<i class="{{ entry.icon }}"></i>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2020-02-13 10:46:05 +01:00
|
|
|
|
2020-10-18 18:10:27 +02:00
|
|
|
</div>
|