From 1ca5ffca2b402f59ace003f9c1eee79e3b9a677c Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Wed, 3 Jun 2020 23:56:17 +0300 Subject: new recipes section, first recipe --- templates/base.html | 6 +++++- templates/page.html | 8 ++++++-- templates/weblog.html | 14 ++++++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index cb9fcb7..ccb167a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,7 +3,11 @@ - {{ config.title }} + + {% block title %} + {{ config.title }} + {% endblock %} + 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 %}

{{ page.title }}

Published {{ page.date | date(format="%b %d, %Y - %H:%M UTC") }} on Yaroslav's weblog

+ %H:%M UTC") }} on + {% if page.permalink is containing("weblog") %} + Yaroslav's weblog

+ {% elif page.permalink is containing("food") %} + Yaroslav's recipe book

+ {% endif %} {% endblock %} {% block content %}
diff --git a/templates/weblog.html b/templates/weblog.html index 43ebbdb..8bace98 100644 --- a/templates/weblog.html +++ b/templates/weblog.html @@ -1,6 +1,20 @@ {% extends "base.html" %} +{% block title %} +{% if section.permalink is containing("weblog") %} +A weblog by Yaroslav de la Peña Smirnov +{% elif section.permalink is containing("food") %} +A collection of recipes by Yaroslav de la Peña Smirnov +{% else %} +{% endif %} +{% endblock %} {% block header %} +{% if section.permalink is containing("weblog") %}

Yaroslav's weblog

+{% elif section.permalink is containing("food") %} +

Yaroslav's recipe book

+{% else %} +

Yaroslav's website

+{% endif %} {% endblock %} {% block content %}
-- cgit v1.2.3