aboutsummaryrefslogtreecommitdiff
path: root/_includes/sidebar.html
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-03 15:29:40 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-03 15:29:40 +0300
commitf32aed3141c55211c89d2aef7049c3d1e3add7de (patch)
tree84b530f0525fa78b179e7cc5c3f318fc4c7e65d1 /_includes/sidebar.html
parentb0f9e927e38c137d2b38e35aa686231a0b5e8415 (diff)
downloadpopov.link-f32aed3141c55211c89d2aef7049c3d1e3add7de.tar.xz
popov.link-f32aed3141c55211c89d2aef7049c3d1e3add7de.zip
The side panel was refined
Signed-off-by: Valentin Popov <valentineus@gmail.com>
Diffstat (limited to '_includes/sidebar.html')
-rw-r--r--_includes/sidebar.html21
1 files changed, 15 insertions, 6 deletions
diff --git a/_includes/sidebar.html b/_includes/sidebar.html
index dee5578..d2343b7 100644
--- a/_includes/sidebar.html
+++ b/_includes/sidebar.html
@@ -4,7 +4,7 @@
<!-- Header -->
<h1>
<a href="{{ site.baseurl }}">
- {% if page.title == "Home" %}
+ {% if page.title == "index" %}
{{ site.title }}
{% else %}
{{ page.title }}
@@ -14,7 +14,7 @@
<!-- Description -->
<p class="lead">
- {% if page.title == "Home" %}
+ {% if page.title == "index" %}
{{ site.description }}
{% else %}
{{ page.description }}
@@ -24,10 +24,19 @@
<!-- Navigation -->
<nav class="sidebar-nav">
- <a class="sidebar-nav-item {% if page.title == "Home" %}active{% endif %}" href="{{ site.baseurl }}">Домой</a>
- <a class="sidebar-nav-item {% if page.title == " Archive " %}active{% endif %}" href="{{ " /archive " | relative_url }}">Архив записей</a>
- <a class="sidebar-nav-item {% if page.title == " Notes " %}active{% endif %}" href="{{ " /notes " | relative_url }}">Полезные заметки</a>
- <a class="sidebar-nav-item" href="{{ site.github.repo }}">Исходный код</a>
+ <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>
</nav>
<!-- Copyright -->