The side panel was refined
Signed-off-by: Valentin Popov <valentineus@gmail.com>
This commit is contained in:
parent
b0f9e927e3
commit
f32aed3141
@ -4,7 +4,7 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<h1>
|
<h1>
|
||||||
<a href="{{ site.baseurl }}">
|
<a href="{{ site.baseurl }}">
|
||||||
{% if page.title == "Home" %}
|
{% if page.title == "index" %}
|
||||||
{{ site.title }}
|
{{ site.title }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ page.title }}
|
{{ page.title }}
|
||||||
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<!-- Description -->
|
<!-- Description -->
|
||||||
<p class="lead">
|
<p class="lead">
|
||||||
{% if page.title == "Home" %}
|
{% if page.title == "index" %}
|
||||||
{{ site.description }}
|
{{ site.description }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ page.description }}
|
{{ page.description }}
|
||||||
@ -24,10 +24,19 @@
|
|||||||
|
|
||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
<nav class="sidebar-nav">
|
<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 == "index" %}active{% endif %}" href="{{ site.baseurl }}">Домашняя страница</a>
|
||||||
<a class="sidebar-nav-item {% if page.title == " Archive " %}active{% endif %}" href="{{ " /archive " | relative_url }}">Архив записей</a>
|
{% for node in site.pages %}
|
||||||
<a class="sidebar-nav-item {% if page.title == " Notes " %}active{% endif %}" href="{{ " /notes " | relative_url }}">Полезные заметки</a>
|
{% if node.sidebar == true %}
|
||||||
<a class="sidebar-nav-item" href="{{ site.github.repo }}">Исходный код</a>
|
<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>
|
</nav>
|
||||||
|
|
||||||
<!-- Copyright -->
|
<!-- Copyright -->
|
||||||
|
Loading…
Reference in New Issue
Block a user