{% extends "base.html" %} {% block title %} {% if page.permalink is containing("weblog") %} {{ page.title }} - Yaroslav's weblog {% elif page.permalink is containing("food") %} {{ page.title }} - Yaroslav's recipe book {% else %} {{ page.title }} - Yaroslav's website {% endif %} {% endblock %} {% block header %} <h1>{{ page.title }}</h1> <p class="publish-date">Published {{ page.date | date(format="%b %d, %Y %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"> {{ page.content | safe }} </div> {% endblock %}