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