aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
blob: a4424370a4cca05bc91f5d3b1e80f88a1f1f998f (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
26
27
28
29
{% 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 %}
  {% if page.updated %}
  <p class="publish-date">Last edited {{ page.updated | date(format="%b %d, %Y
  %H:%M UTC") }}</p>
  {% endif %}
{% endblock %}
{% block content %}
  <div class="post-container">
    {{ page.content | safe }}
  </div>
{% endblock %}