Fixed cycle

Signed-off-by: Valentin Popov <valentineus@gmail.com>
This commit is contained in:
Valentin Popov 2018-04-03 23:11:34 +00:00
parent cf2658dd1a
commit 340f12d839

View File

@ -22,8 +22,7 @@
<!-- Navigation --> <!-- Navigation -->
<nav class="sidebar-nav"> <nav class="sidebar-nav">
<a class="sidebar-nav-item {% if page.id == "index" %}active{% endif %}" href="{{ site.baseurl | uri_escape }}">Домашняя страница</a> {% for node in site.pages reversed %}
{% for node in site.pages %}
{% if node.sidebar == true %} {% if node.sidebar == true %}
<a class="sidebar-nav-item {% if page.url == node.url %}active{% endif %}" href="{{ node.url | relative_url | uri_escape }}"> <a class="sidebar-nav-item {% if page.url == node.url %}active{% endif %}" href="{{ node.url | relative_url | uri_escape }}">
{{ node.title | smartify | strip_html | normalize_whitespace }} {{ node.title | smartify | strip_html | normalize_whitespace }}