2021-02-02 22:01:42 +01:00
|
|
|
{% import "macros.html" as macro %}
|
2019-10-30 11:58:46 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2019-12-24 14:57:47 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2019-10-30 11:58:46 +01:00
|
|
|
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
|
|
|
<link rel="stylesheet" href="/style.css" type="text/css">
|
2021-02-03 23:01:43 +01:00
|
|
|
<link rel="stylesheet" href="/fonts/icons.css" type="text/css">
|
2019-10-30 11:58:46 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<nav>
|
|
|
|
<div class="mainnav">
|
|
|
|
<h1><a href="/">Recepty na cesty</a></h1>
|
|
|
|
<ul>
|
2021-02-03 23:01:43 +01:00
|
|
|
<li><a href="/vyhledavani/"><span class="icon-search"></span></a></li>
|
|
|
|
<!-- <li><a href="/info/"><span class="icon-info"></span></a></li> -->
|
|
|
|
<li><a href="{{ config.extra.git }}"><span class="icon-git"></span></a></li>
|
2019-10-30 11:58:46 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="subnav">
|
|
|
|
<ul>
|
2020-09-14 18:20:16 +02:00
|
|
|
{% for item in config.extra.menu %}
|
|
|
|
<li><a href="{{ item.path }}">{{ item.name }}</a></li>
|
|
|
|
{% endfor %}
|
2019-10-30 11:58:46 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<main>
|
|
|
|
<h2>Nejnovější recepty</h2>
|
|
|
|
<hr>
|
|
|
|
<section class="list">
|
|
|
|
{% for page in paginator.pages %}
|
2021-02-02 22:01:42 +01:00
|
|
|
{{ macro::print_recipe(recipe=page) }}
|
2019-10-30 11:58:46 +01:00
|
|
|
{% endfor %}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<div class="pagination">
|
|
|
|
{% if paginator.previous %}<a href="{{ paginator.previous }}">« Předchozí stránka</a> |{% endif %}
|
|
|
|
<span>{{ paginator.current_index }} / {{ paginator.number_pagers }}</span>
|
|
|
|
{% if paginator.next %}| <a href="{{ paginator.next }}">Další stránka »</a>{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</main>
|
|
|
|
{% endblock content %}
|
|
|
|
|
2021-01-23 15:32:22 +01:00
|
|
|
{% block script %}{% endblock script %}
|
2019-10-30 11:58:46 +01:00
|
|
|
</body>
|
|
|
|
</html>
|