aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-04 00:30:05 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-04 00:30:05 +0300
commit8f06024803b9ac8506a4299e1c7463e2e95c6aeb (patch)
treee078a8d9be87f4de080e7c394291ceccf574cbec /_includes
parentbcc6b80537dddc51a65cd0dc112a2b70c1debc00 (diff)
downloadpopov.link-8f06024803b9ac8506a4299e1c7463e2e95c6aeb.tar.xz
popov.link-8f06024803b9ac8506a4299e1c7463e2e95c6aeb.zip
Checking the homepage by ID
Signed-off-by: Valentin Popov <valentineus@gmail.com>
Diffstat (limited to '_includes')
-rw-r--r--_includes/head.html2
-rw-r--r--_includes/sidebar.html6
2 files changed, 4 insertions, 4 deletions
diff --git a/_includes/head.html b/_includes/head.html
index 5710769..035aad2 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<title>
- {% if page.title == "index" %}
+ {% if page.id == "index" %}
{{ site.title | smartify | strip_html | normalize_whitespace }}
{% else %}
{{ page.title | smartify | strip_html | normalize_whitespace }} &middot;
diff --git a/_includes/sidebar.html b/_includes/sidebar.html
index 34461b9..3438fc8 100644
--- a/_includes/sidebar.html
+++ b/_includes/sidebar.html
@@ -3,7 +3,7 @@
<div class="sidebar-about">
<!-- Header -->
<a href="{{ site.baseurl | uri_escape }}">
- {% if page.title == "index" %}
+ {% if page.id == "index" %}
<h1>{{ site.title | smartify | strip_html | normalize_whitespace }}</h1>
{% else %}
<h1>{{ page.title | smartify | strip_html | normalize_whitespace }}</h1>
@@ -12,7 +12,7 @@
<!-- Description -->
<p class="lead">
- {% if page.title == "index" %}
+ {% if page.id == "index" %}
{{ site.description | smartify | strip_html | normalize_whitespace }}
{% else %}
{{ page.description | smartify | strip_html | normalize_whitespace }}
@@ -22,7 +22,7 @@
<!-- Navigation -->
<nav class="sidebar-nav">
- <a class="sidebar-nav-item {% if page.title == "index" %}active{% endif %}" href="{{ site.baseurl | uri_escape }}">Домашняя страница</a>
+ <a class="sidebar-nav-item {% if page.id == "index" %}active{% endif %}" href="{{ site.baseurl | uri_escape }}">Домашняя страница</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 | uri_escape }}">