2023-05-06 02:22:29 +03:00
|
|
|
<!-- The Side Bar -->
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2023-09-08 17:48:37 +03:00
|
|
|
<aside aria-label="Sidebar" id="sidebar" class="d-flex flex-column align-items-end">
|
|
|
|
<header class="profile-wrapper">
|
2023-03-24 21:58:58 +03:00
|
|
|
<a href="{{ '/' | relative_url }}" id="avatar" class="rounded-circle">
|
|
|
|
{% if site.avatar != empty and site.avatar %}
|
|
|
|
{% capture avatar_url %}
|
2022-02-02 21:23:02 +03:00
|
|
|
{% if site.avatar contains '://' %}
|
2021-09-30 10:24:10 +03:00
|
|
|
{{ site.avatar }}
|
2022-02-02 21:23:02 +03:00
|
|
|
{% elsif site.img_cdn != empty and site.img_cdn %}
|
2021-09-30 10:24:10 +03:00
|
|
|
{{ site.avatar | prepend: site.img_cdn }}
|
2022-02-02 21:23:02 +03:00
|
|
|
{% else %}
|
2021-09-30 10:24:10 +03:00
|
|
|
{{ site.avatar | relative_url }}
|
2022-02-02 21:23:02 +03:00
|
|
|
{% endif %}
|
2021-09-30 10:24:10 +03:00
|
|
|
{% endcapture %}
|
2023-03-24 21:58:58 +03:00
|
|
|
<img src="{{ avatar_url | strip }}" width="112" height="112" alt="avatar" onerror="this.style.display='none'">
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
2019-11-11 18:02:38 +03:00
|
|
|
|
2023-09-08 17:48:37 +03:00
|
|
|
<h1 class="site-title">
|
2021-07-20 20:01:09 +03:00
|
|
|
<a href="{{ '/' | relative_url }}">{{ site.title }}</a>
|
2023-09-08 17:48:37 +03:00
|
|
|
</h1>
|
|
|
|
<p class="site-subtitle fst-italic mb-0">{{ site.tagline }}</p>
|
|
|
|
</header>
|
2023-05-06 02:22:29 +03:00
|
|
|
<!-- .profile-wrapper -->
|
2020-12-21 17:17:11 +03:00
|
|
|
|
2023-09-08 17:48:37 +03:00
|
|
|
<nav class="flex-column flex-grow-1 w-100 ps-0">
|
|
|
|
<ul class="nav">
|
|
|
|
<!-- home -->
|
|
|
|
<li class="nav-item{% if page.layout == 'home' %}{{ " active" }}{% endif %}">
|
|
|
|
<a href="{{ '/' | relative_url }}" class="nav-link">
|
|
|
|
<i class="fa-fw fas fa-home"></i>
|
|
|
|
<span>{{ site.data.locales[include.lang].tabs.home | upcase }}</span>
|
2023-05-06 02:22:29 +03:00
|
|
|
</a>
|
|
|
|
</li>
|
2023-09-08 17:48:37 +03:00
|
|
|
<!-- the real tabs -->
|
|
|
|
{% for tab in site.tabs %}
|
|
|
|
<li class="nav-item{% if tab.url == page.url %}{{ " active" }}{% endif %}">
|
|
|
|
<a href="{{ tab.url | relative_url }}" class="nav-link">
|
|
|
|
<i class="fa-fw {{ tab.icon }}"></i>
|
|
|
|
{% capture tab_name %}{{ tab.url | split: '/' }}{% endcapture %}
|
|
|
|
|
|
|
|
<span>{{ site.data.locales[include.lang].tabs.[tab_name] | default: tab.title | upcase }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<!-- .nav-item -->
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2023-03-24 21:58:58 +03:00
|
|
|
<div class="sidebar-bottom d-flex flex-wrap align-items-center w-100">
|
2021-12-01 14:51:25 +03:00
|
|
|
{% unless site.theme_mode %}
|
2023-09-08 17:48:37 +03:00
|
|
|
<button type="button" class="mode-toggle btn" aria-label="Switch Mode">
|
2021-12-07 13:17:20 +03:00
|
|
|
<i class="fas fa-adjust"></i>
|
|
|
|
</button>
|
2021-12-01 14:51:25 +03:00
|
|
|
|
|
|
|
{% if site.data.contact.size > 0 %}
|
|
|
|
<span class="icon-border"></span>
|
|
|
|
{% endif %}
|
|
|
|
{% endunless %}
|
|
|
|
|
2023-09-10 21:20:45 +03:00
|
|
|
{% for entry in site.data.contact %}
|
|
|
|
{% case entry.type %}
|
|
|
|
{% when 'github', 'twitter' %}
|
|
|
|
{%- capture url -%}
|
2023-02-06 17:33:20 +03:00
|
|
|
https://{{ entry.type }}.com/{{ site[entry.type].username }}
|
|
|
|
{%- endcapture -%}
|
2023-09-10 21:20:45 +03:00
|
|
|
{% when 'email' %}
|
|
|
|
{% assign email = site.social.email | split: '@' %}
|
|
|
|
{%- capture url -%}
|
2023-02-06 17:33:20 +03:00
|
|
|
javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@')
|
|
|
|
{%- endcapture -%}
|
2023-09-10 21:20:45 +03:00
|
|
|
{% when 'rss' %}
|
|
|
|
{% assign url = '/feed.xml' | relative_url %}
|
|
|
|
{% else %}
|
|
|
|
{% assign url = entry.url %}
|
|
|
|
{% endcase %}
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2023-09-10 21:20:45 +03:00
|
|
|
{% if url %}
|
|
|
|
<a
|
|
|
|
href="{{ url }}"
|
|
|
|
aria-label="{{ entry.type }}"
|
|
|
|
{% assign link_types = '' %}
|
2023-05-06 02:22:29 +03:00
|
|
|
|
2023-09-10 21:20:45 +03:00
|
|
|
{% unless entry.noblank %}
|
|
|
|
target="_blank"
|
|
|
|
{% assign link_types = 'noopener noreferrer' %}
|
|
|
|
{% endunless %}
|
2023-05-06 02:22:29 +03:00
|
|
|
|
2023-09-10 21:20:45 +03:00
|
|
|
{% if entry.type == 'mastodon' %}
|
|
|
|
{% assign link_types = link_types | append: ' me' | strip %}
|
|
|
|
{% endif %}
|
2023-05-06 02:22:29 +03:00
|
|
|
|
2023-09-10 21:20:45 +03:00
|
|
|
{% unless link_types == empty %}
|
|
|
|
rel="{{ link_types }}"
|
|
|
|
{% endunless %}
|
|
|
|
>
|
|
|
|
<i class="{{ entry.icon }}"></i>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2023-05-06 02:22:29 +03:00
|
|
|
</div>
|
|
|
|
<!-- .sidebar-bottom -->
|
2023-09-08 17:48:37 +03:00
|
|
|
</aside>
|
2023-05-06 02:22:29 +03:00
|
|
|
<!-- #sidebar -->
|