aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
diff options
context:
space:
mode:
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">