2019-09-30 15:38:41 +03:00
|
|
|
<!--
|
|
|
|
The Top Bar
|
|
|
|
-->
|
2021-01-25 01:20:51 +03:00
|
|
|
|
2020-01-03 16:22:11 +03:00
|
|
|
<div id="topbar-wrapper" class="row justify-content-center topbar-down">
|
2019-12-31 18:17:27 +03:00
|
|
|
<div id="topbar" class="col-11 d-flex h-100 align-items-center justify-content-between">
|
2019-09-30 15:38:41 +03:00
|
|
|
<span id="breadcrumb">
|
2021-01-31 16:43:23 +03:00
|
|
|
|
|
|
|
{% assign paths = page.url | split: '/' %}
|
|
|
|
|
2021-07-19 20:38:25 +03:00
|
|
|
{% if paths.size == 0 or page.layout == 'home' %}
|
2021-01-31 16:43:23 +03:00
|
|
|
<!-- index page -->
|
2021-08-01 16:54:27 +03:00
|
|
|
<span>{{ site.data.locales[lang].tabs.home | capitalize }}</span>
|
2021-07-20 20:01:09 +03:00
|
|
|
|
2021-01-31 16:43:23 +03:00
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{% for item in paths %}
|
|
|
|
|
|
|
|
{% if forloop.first %}
|
|
|
|
<span>
|
2021-07-20 20:01:09 +03:00
|
|
|
<a href="{{ '/' | relative_url }}">
|
2021-08-01 16:54:27 +03:00
|
|
|
{{ site.data.locales[lang].tabs.home | capitalize }}
|
2021-07-20 20:01:09 +03:00
|
|
|
</a>
|
2021-01-31 16:43:23 +03:00
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elsif forloop.last %}
|
|
|
|
|
2021-07-20 20:01:09 +03:00
|
|
|
{% if page.collection == 'tabs' %}
|
2021-08-01 16:54:27 +03:00
|
|
|
<span>{{ site.data.locales[lang].tabs[item] | default: page.title }}</span>
|
2021-07-20 20:01:09 +03:00
|
|
|
{% else %}
|
|
|
|
<span>{{ page.title }}</span>
|
2021-01-31 16:43:23 +03:00
|
|
|
{% endif %}
|
2021-07-20 20:01:09 +03:00
|
|
|
|
2021-08-03 17:55:35 +03:00
|
|
|
{% elsif page.layout == 'category' or page.layout == 'tag' %}
|
|
|
|
<span>
|
|
|
|
<a href="{{ item | relative_url }}">
|
|
|
|
{{ site.data.locales[lang].tabs[item] | default: page.title }}
|
|
|
|
</a>
|
|
|
|
</span>
|
2019-09-30 15:38:41 +03:00
|
|
|
{% endif %}
|
2021-01-31 16:43:23 +03:00
|
|
|
|
2019-09-30 15:38:41 +03:00
|
|
|
{% endfor %}
|
|
|
|
|
2021-01-31 16:43:23 +03:00
|
|
|
{% endif %}
|
2019-09-30 15:38:41 +03:00
|
|
|
|
|
|
|
</span><!-- endof #breadcrumb -->
|
|
|
|
|
|
|
|
<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' %}
|
2021-08-01 16:54:27 +03:00
|
|
|
{{- site.data.locales[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 -%}
|
2021-08-01 16:54:27 +03:00
|
|
|
{{- site.data.locales[lang].tabs[tab_key] | default: page.title -}}
|
2020-11-21 23:24:09 +03:00
|
|
|
{% else %}
|
2021-08-01 16:54:27 +03:00
|
|
|
{{- site.data.locales[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>
|
2020-10-27 11:20:22 +03:00
|
|
|
<input class="form-control" id="search-input" type="search"
|
2021-08-01 16:54:27 +03:00
|
|
|
aria-label="search" autocomplete="off" placeholder="{{ site.data.locales[lang].search.hint | capitalize }}...">
|
2019-12-31 18:17:27 +03:00
|
|
|
<i class="fa fa-times-circle fa-fw" id="search-cleaner"></i>
|
2019-09-30 15:38:41 +03:00
|
|
|
</span>
|
2021-08-01 16:54:27 +03:00
|
|
|
<span id="search-cancel" >{{ site.data.locales[lang].search.cancel }}</span>
|
2019-09-30 15:38:41 +03:00
|
|
|
</div>
|
|
|
|
|
2020-10-27 11:20:22 +03:00
|
|
|
</div>
|