From 1ca5ffca2b402f59ace003f9c1eee79e3b9a677c Mon Sep 17 00:00:00 2001
From: Yaroslav <contact@yaroslavps.com>
Date: Wed, 3 Jun 2020 23:56:17 +0300
Subject: new recipes section, first recipe

---
 templates/page.html | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'templates/page.html')

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">
-- 
cgit v1.2.3