aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/index.ru.html
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-03-12 18:44:41 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-03-12 18:44:41 +0300
commit5716bfd7548e386b12703e76cdf273bce839116c (patch)
tree5b21a9a8f6fd53e225f43385537d39fde70fa7c3 /templates/index.ru.html
downloadsaucesource.cc-5716bfd7548e386b12703e76cdf273bce839116c.tar.gz
saucesource.cc-5716bfd7548e386b12703e76cdf273bce839116c.zip
Initial commit
Essential functional website.
Diffstat (limited to 'templates/index.ru.html')
-rw-r--r--templates/index.ru.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/index.ru.html b/templates/index.ru.html
new file mode 100644
index 0000000..aabfb4f
--- /dev/null
+++ b/templates/index.ru.html
@@ -0,0 +1,46 @@
+{% extends "base.html" %}
+{% block h1title %}
+<h1>Добро пожаловать в {{ config.title }}</h1>
+<p class="publish-date">Простой и не отстойный сайт рецептов.</p>
+{% 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) %}
+<h2>Последний рецепт</h2>
+{% set latest = section.pages[0] %}
+<div class="recipe-container partial">
+ <h2>
+ <a href="{{ latest.permalink }}">{{ latest.title }}</a>
+ <span class="publish-date">{{ latest.date | date }}</span>
+ </h2>
+ {% if latest.summary %}
+ {{ latest.summary | safe }}
+ {% endif %}
+</div>
+<div class="more-link-container">
+<a href="/ru/recipes/">Больше рецептов...</a>
+</div>
+<h2>Сделай вклад</h2>
+<p>
+Если хочешь опубликовать свой рецепт или улучшить сайт, мы здесь этому рады.
+Больше информации можно найти <a href="/ru/about/">здесь</a>.
+</p>
+<h2>Другие языки</h2>
+<p>
+Сайт также доступен на данный момент на этих языках:
+</p>
+<ul>
+ <li><a href="/es/">Español</a></li>
+ <li><a href="/">English</a></li>
+</ul>
+<p>
+Учтите что рецепты переводятся отдельно от самого сайта. То есть, не все рецепты
+доступны на всех языках сайта. Если вы желаете помочь в переводе сайта на другие
+языки или улучшить существующие переводы, прочитайте страницу
+<a href="/ru/about/">о сайте</a>.
+</p>
+{% endblock %}