Checking the homepage by ID

Signed-off-by: Valentin Popov <valentineus@gmail.com>
This commit is contained in:
Valentin Popov 2018-04-03 21:30:05 +00:00
parent bcc6b80537
commit 8f06024803
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<title> <title>
{% if page.title == "index" %} {% if page.id == "index" %}
{{ site.title | smartify | strip_html | normalize_whitespace }} {{ site.title | smartify | strip_html | normalize_whitespace }}
{% else %} {% else %}
{{ page.title | smartify | strip_html | normalize_whitespace }} &middot; {{ page.title | smartify | strip_html | normalize_whitespace }} &middot;

View File

@ -3,7 +3,7 @@
<div class="sidebar-about"> <div class="sidebar-about">
<!-- Header --> <!-- Header -->
<a href="{{ site.baseurl | uri_escape }}"> <a href="{{ site.baseurl | uri_escape }}">
{% if page.title == "index" %} {% if page.id == "index" %}
<h1>{{ site.title | smartify | strip_html | normalize_whitespace }}</h1> <h1>{{ site.title | smartify | strip_html | normalize_whitespace }}</h1>
{% else %} {% else %}
<h1>{{ page.title | smartify | strip_html | normalize_whitespace }}</h1> <h1>{{ page.title | smartify | strip_html | normalize_whitespace }}</h1>
@ -12,7 +12,7 @@
<!-- Description --> <!-- Description -->
<p class="lead"> <p class="lead">
{% if page.title == "index" %} {% if page.id == "index" %}
{{ site.description | smartify | strip_html | normalize_whitespace }} {{ site.description | smartify | strip_html | normalize_whitespace }}
{% else %} {% else %}
{{ page.description | smartify | strip_html | normalize_whitespace }} {{ page.description | smartify | strip_html | normalize_whitespace }}
@ -22,7 +22,7 @@
<!-- Navigation --> <!-- Navigation -->
<nav class="sidebar-nav"> <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 %} {% 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 }}">