aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html6
-rw-r--r--templates/page.html8
-rw-r--r--templates/weblog.html14
3 files changed, 25 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html
index cb9fcb7..ccb167a 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -3,7 +3,11 @@
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1" name="viewport">
- <title>{{ config.title }}</title>
+ <title>
+ {% block title %}
+ {{ config.title }}
+ {% endblock %}
+ </title>
<link rel="stylesheet" href="{{ get_url(path="css/yaroslavps.css") }}">
<link rel="icon" type="image/png" href="{{ get_url(path="favicon32x32.png") }}">
<link rel="icon" type="image/png" href="{{ get_url(path="favicon64x64.png") }}">
diff --git a/templates/page.html b/templates/page.html
index 5fc80db..36e34b8 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,9 +1,13 @@
{% extends "base.html" %}
-{% set post = page %}
{% block header %}
<h1>{{ page.title }}</h1>
<p class="publish-date">Published {{ page.date | date(format="%b %d, %Y
- %H:%M UTC") }} on <a href="/weblog">Yaroslav's weblog</a></p>
+ %H:%M UTC") }} on
+ {% if page.permalink is containing("weblog") %}
+ <a href="/weblog">Yaroslav's weblog</a></p>
+ {% elif page.permalink is containing("food") %}
+ <a href="/food">Yaroslav's recipe book</a></p>
+ {% endif %}
{% endblock %}
{% block content %}
<div class="post-container">
diff --git a/templates/weblog.html b/templates/weblog.html
index 43ebbdb..8bace98 100644
--- a/templates/weblog.html
+++ b/templates/weblog.html
@@ -1,6 +1,20 @@
{% extends "base.html" %}
+{% block title %}
+{% if section.permalink is containing("weblog") %}
+A weblog by Yaroslav de la Peña Smirnov
+{% elif section.permalink is containing("food") %}
+A collection of recipes by Yaroslav de la Peña Smirnov
+{% else %}
+{% endif %}
+{% endblock %}
{% block header %}
+{% if section.permalink is containing("weblog") %}
<h1>Yaroslav's weblog</h1>
+{% elif section.permalink is containing("food") %}
+<h1>Yaroslav's recipe book</h1>
+{% else %}
+<h1>Yaroslav's website</h1>
+{% endif %}
{% endblock %}
{% block content %}
<div class="posts-list">