aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
blob: 699bd967427a2b5c235cb09a8d546df6601d8aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% 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 %}