aboutsummaryrefslogtreecommitdiff
path: root/_includes/sidebar.html
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-03 03:28:01 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-03 03:29:05 +0300
commite579c803deb1ed1879d3db5de54730e325fd58af (patch)
tree4e017897f4ff39f50c068b8d4c1423768090fcef /_includes/sidebar.html
parent89fcf8c78fedfe01b4ec473a7ee489cdc7410f72 (diff)
downloadpopov.link-e579c803deb1ed1879d3db5de54730e325fd58af.tar.xz
popov.link-e579c803deb1ed1879d3db5de54730e325fd58af.zip
Sidebar was added
Diffstat (limited to '_includes/sidebar.html')
-rw-r--r--_includes/sidebar.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/_includes/sidebar.html b/_includes/sidebar.html
new file mode 100644
index 0000000..dee5578
--- /dev/null
+++ b/_includes/sidebar.html
@@ -0,0 +1,36 @@
+<div class="sidebar">
+ <div class="container sidebar-sticky">
+ <div class="sidebar-about">
+ <!-- Header -->
+ <h1>
+ <a href="{{ site.baseurl }}">
+ {% if page.title == "Home" %}
+ {{ site.title }}
+ {% else %}
+ {{ page.title }}
+ {% endif %}
+ </a>
+ </h1>
+
+ <!-- Description -->
+ <p class="lead">
+ {% if page.title == "Home" %}
+ {{ site.description }}
+ {% else %}
+ {{ page.description }}
+ {% endif %}
+ </p>
+ </div>
+
+ <!-- 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>
+ </nav>
+
+ <!-- Copyright -->
+ <p>&copy; {{ site.time | date: "%Y" }}. All rights reserved.</p>
+ </div>
+</div>