From 5716bfd7548e386b12703e76cdf273bce839116c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 12 Mar 2021 18:44:41 +0300 Subject: Initial commit Essential functional website. --- templates/index.html | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 templates/index.html (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..68dde54 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,47 @@ +{% extends "base.html" %} +{% block h1title %} +

Welcome to {{ config.title }}

+

A simple recipe website that doesn't suck.

+{% endblock %} +{% block body %} +{% if lang != "en" %} +{% set section_path = "recipes/_index." ~ lang ~ ".md" %} +{% else %} +{% set section_path = "recipes/_index.md" %} +{% endif %} +{% set section = get_section(path=section_path) %} +

Latest Recipe

+{% set latest = section.pages[0] %} +
+

+ {{ latest.title }} + {{ latest.date | date }} +

+ {% if latest.summary %} + {{ latest.summary | safe }} + {% endif %} +
+ +

Make a contribution

+

+If you want to publish your recipe or make this site better, don't hesitate to +help. You can find more information on how to contribute +here. +

+

Other languages

+

+This site is currently also available in the following languages: +

+ +

+Do keep in mind that not all recipes will be translated to every language the +site is available on. If you want to help translate the site to another +language, or help improve existing translations check the +about page. +

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