aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
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/page.html
parent93e66d4088b348899715e1f1a891c8a6092f4116 (diff)
downloadyaroslavps.com-1ca5ffca2b402f59ace003f9c1eee79e3b9a677c.tar.gz
yaroslavps.com-1ca5ffca2b402f59ace003f9c1eee79e3b9a677c.zip
new recipes section, first recipe
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html8
1 files changed, 6 insertions, 2 deletions
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">