From 8acb898a2f2730e2a853c844f0e8b9bb2d690f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 24 Dec 2021 03:32:22 +0300 Subject: Huge html+css revamp * Plus added links to new photo gallery and donate page. * Title fix --- templates/index.html | 216 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 150 insertions(+), 66 deletions(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index 91cce73..a47e545 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,53 +1,139 @@ {% extends "base.html" %} {% block page %} + {% if lang != "en" %} + {% set weblog_path = "weblog/_index." ~ lang ~ ".md" %} + {% set recipes_path = "food/_index." ~ lang ~ ".md" %} + {% else %} + {% set weblog_path = "weblog/_index.md" %} + {% set recipes_path = "food/_index.md" %} + {% endif %} + {% set weblog = get_section(path=weblog_path) %} + {% set recipes = get_section(path=recipes_path) %}

{{ trans(key="full_name", lang=lang) }}

- {% endblock %} -- cgit v1.2.3