2023-05-06 02:22:29 +03:00
|
|
|
<!-- The Top Bar -->
|
2021-01-25 01:20:51 +03:00
|
|
|
|
2023-09-08 17:48:37 +03:00
|
|
|
<header id="topbar-wrapper" aria-label="Top Bar">
|
2023-04-10 05:54:27 +03:00
|
|
|
<div
|
|
|
|
id="topbar"
|
2023-09-08 17:48:37 +03:00
|
|
|
class="d-flex align-items-center justify-content-between px-lg-3 h-100"
|
2023-04-10 05:54:27 +03:00
|
|
|
>
|
2023-09-08 17:48:37 +03:00
|
|
|
<nav id="breadcrumb" aria-label="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 }}">
|
2024-01-19 01:19:20 +03:00
|
|
|
{{- site.data.locales[include.lang].tabs.home | capitalize -}}
|
2023-05-06 02:22:29 +03:00
|
|
|
</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>
|
2024-01-19 01:19:20 +03:00
|
|
|
<a href="{{ item | append: '/' | relative_url }}">
|
|
|
|
{{- site.data.locales[include.lang].tabs[item] | default: page.title -}}
|
2023-05-06 02:22:29 +03:00
|
|
|
</a>
|
|
|
|
</span>
|
2021-01-31 16:43:23 +03:00
|
|
|
{% endif %}
|
2023-05-06 02:22:29 +03:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2023-09-08 17:48:37 +03:00
|
|
|
</nav>
|
2023-05-06 02:22:29 +03:00
|
|
|
<!-- endof #breadcrumb -->
|
2019-09-30 15:38:41 +03:00
|
|
|
|
2023-09-08 17:48:37 +03:00
|
|
|
<button type="button" id="sidebar-trigger" class="btn btn-link">
|
|
|
|
<i class="fas fa-bars fa-fw"></i>
|
|
|
|
</button>
|
2019-09-30 15:38:41 +03:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2023-09-08 17:48:37 +03:00
|
|
|
<button type="button" id="search-trigger" class="btn btn-link">
|
|
|
|
<i class="fas fa-search fa-fw"></i>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<search class="align-items-center ms-3 ms-lg-0">
|
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 }}..."
|
|
|
|
>
|
2023-09-08 17:48:37 +03:00
|
|
|
</search>
|
|
|
|
<button type="button" class="btn btn-link text-decoration-none" id="search-cancel">
|
|
|
|
{{- site.data.locales[include.lang].search.cancel -}}
|
|
|
|
</button>
|
2019-09-30 15:38:41 +03:00
|
|
|
</div>
|
2023-09-08 17:48:37 +03:00
|
|
|
</header>
|