2018-04-03 03:28:01 +03:00
|
|
|
<div class="sidebar">
|
|
|
|
<div class="container sidebar-sticky">
|
|
|
|
<div class="sidebar-about">
|
|
|
|
<!-- Header -->
|
|
|
|
<h1>
|
|
|
|
<a href="{{ site.baseurl }}">
|
2018-04-03 15:29:40 +03:00
|
|
|
{% if page.title == "index" %}
|
2018-04-03 03:28:01 +03:00
|
|
|
{{ site.title }}
|
|
|
|
{% else %}
|
|
|
|
{{ page.title }}
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<!-- Description -->
|
|
|
|
<p class="lead">
|
2018-04-03 15:29:40 +03:00
|
|
|
{% if page.title == "index" %}
|
2018-04-03 03:28:01 +03:00
|
|
|
{{ site.description }}
|
|
|
|
{% else %}
|
|
|
|
{{ page.description }}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Navigation -->
|
|
|
|
<nav class="sidebar-nav">
|
2018-04-03 15:29:40 +03:00
|
|
|
<a class="sidebar-nav-item {% if page.title == "index" %}active{% endif %}" href="{{ site.baseurl }}">Домашняя страница</a>
|
|
|
|
{% for node in site.pages %}
|
|
|
|
{% if node.sidebar == true %}
|
|
|
|
<a class="sidebar-nav-item {% if page.url == node.url %}active{% endif %}" href="{{ node.url | relative_url }}">{{ node.title }}</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<!-- Additional elements -->
|
|
|
|
<nav class="sidebar-nav fa-sm">
|
|
|
|
<a class="sidebar-nav-icon" href="{{ site.rss | relative_url }}"><i class="fas fa-rss"></i></a>
|
|
|
|
<a class="sidebar-nav-icon" href="mailto:{{ site.author.email }}?subject={{ page.title }}"><i class="fas fa-envelope-open"></i></a>
|
|
|
|
<a class="sidebar-nav-icon" href="{{ site.github.repo | uri_escape }}"><i class="fab fa-github"></i></a>
|
2018-04-03 03:28:01 +03:00
|
|
|
</nav>
|
|
|
|
|
|
|
|
<!-- Copyright -->
|
|
|
|
<p>© {{ site.time | date: "%Y" }}. All rights reserved.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|