aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-06-03 23:56:17 +0300
committerYaroslav <contact@yaroslavps.com>2020-06-03 23:56:17 +0300
commit1ca5ffca2b402f59ace003f9c1eee79e3b9a677c (patch)
treea79ba6b3ebec61421a41410b20e7a52fc45d4ba6 /templates
parent93e66d4088b348899715e1f1a891c8a6092f4116 (diff)
downloadyaroslavps.com-1ca5ffca2b402f59ace003f9c1eee79e3b9a677c.tar.gz
yaroslavps.com-1ca5ffca2b402f59ace003f9c1eee79e3b9a677c.zip
new recipes section, first recipe
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">