2023-05-06 02:22:29 +03:00
|
|
|
<!-- The Top Bar -->
|
2021-01-25 01:20:51 +03:00
|
|
|
|
2022-06-08 11:15:38 +03:00
|
|
|
<div id="topbar-wrapper">
|
2023-04-10 05:54:27 +03:00
|
|
|
<div
|
|
|
|
id="topbar"
|
2023-05-16 20:59:34 +03:00
|
|
|
class="container d-flex align-items-center justify-content-between h-100"
|
2023-04-10 05:54:27 +03:00
|
|
|
>
|
2019-09-30 15:38:41 +03:00
|
|
|
<span id="breadcrumb">
|
2023-05-06 02:22:29 +03:00
|
|
|
{% assign paths = page.url | split: '/' %}
|
2021-01-31 16:43:23 +03:00
|
|
|
|
2023-05-06 02:22:29 +03:00
|
|
|
{% if paths.size == 0 or page.layout == 'home' %}
|
|
|
|
<!-- index page -->
|
|
|
|
<span>{{ site.data.locales[include.lang].tabs.home | capitalize }}</span>
|
2021-01-31 16:43:23 +03:00
|
|
|
|
2023-05-06 02:22:29 +03:00
|
|
|
{% else %}
|
|
|
|
{% for item in paths %}
|
|
|
|
{% if forloop.first %}
|
|
|
|
<span>
|
|
|
|
<a href="{{ '/' | relative_url }}">
|
|
|
|
{{ site.data.locales[include.lang].tabs.home | capitalize }}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elsif forloop.last %}
|
|
|
|
{% if page.collection == 'tabs' %}
|
|
|
|
<span>{{ site.data.locales[include.lang].tabs[item] | default: page.title }}</span>
|
|
|
|
{% else %}
|
|
|
|
<span>{{ page.title }}</span>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% elsif page.layout == 'category' or page.layout == 'tag' %}
|
|
|
|
<span>
|
|
|
|
<a href="{{ item | relative_url }}">
|
|
|
|
{{ site.data.locales[include.lang].tabs[item] | default: page.title }}
|
|
|
|
</a>
|
|
|
|
</span>
|
2021-01-31 16:43:23 +03:00
|
|
|
{% endif %}
|
2023-05-06 02:22:29 +03:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
|
|
|
<!-- endof #breadcrumb -->
|
2019-09-30 15:38:41 +03:00
|
|
|
|
|
|
|
<i id="sidebar-trigger" class="fas fa-bars fa-fw"></i>
|
|
|
|
|
|
|
|
<div id="topbar-title">
|
2020-11-21 23:24:09 +03:00
|
|
|
{% if page.layout == 'home' %}
|
2023-05-06 02:22:29 +03:00
|
|
|
{{- site.data.locales[include.lang].title | default: site.title -}}
|
2022-01-05 17:58:51 +03:00
|
|
|
{% elsif page.collection == 'tabs' or page.layout == 'page' %}
|
2021-07-20 20:01:09 +03:00
|
|
|
{%- capture tab_key -%}{{ page.url | split: '/' }}{%- endcapture -%}
|
2023-05-06 02:22:29 +03:00
|
|
|
{{- site.data.locales[include.lang].tabs[tab_key] | default: page.title -}}
|
2020-11-21 23:24:09 +03:00
|
|
|
{% else %}
|
2023-05-06 02:22:29 +03:00
|
|
|
{{- site.data.locales[include.lang].layout[page.layout] | default: page.layout | capitalize -}}
|
2020-11-21 23:24:09 +03:00
|
|
|
{% endif %}
|
2019-09-30 15:38:41 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<i id="search-trigger" class="fas fa-search fa-fw"></i>
|
2019-12-31 18:17:27 +03:00
|
|
|
<span id="search-wrapper" class="align-items-center">
|
2019-09-30 15:38:41 +03:00
|
|
|
<i class="fas fa-search fa-fw"></i>
|
2023-05-06 02:22:29 +03:00
|
|
|
<input
|
|
|
|
class="form-control"
|
|
|
|
id="search-input"
|
|
|
|
type="search"
|
|
|
|
aria-label="search"
|
|
|
|
autocomplete="off"
|
|
|
|
placeholder="{{ site.data.locales[include.lang].search.hint | capitalize }}..."
|
|
|
|
>
|
2019-09-30 15:38:41 +03:00
|
|
|
</span>
|
2023-05-06 02:22:29 +03:00
|
|
|
<span id="search-cancel">{{ site.data.locales[include.lang].search.cancel }}</span>
|
2019-09-30 15:38:41 +03:00
|
|
|
</div>
|
2020-10-27 11:20:22 +03:00
|
|
|
</div>
|