52 lines
1.4 KiB
HTML
52 lines
1.4 KiB
HTML
{% import "macros.html" as macro %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
|
<link rel="stylesheet" href="/style.css" type="text/css">
|
|
</head>
|
|
<body>
|
|
|
|
<nav>
|
|
<div class="mainnav">
|
|
<h1><a href="/">Recepty na cesty</a></h1>
|
|
<ul>
|
|
<li><a href="/vyhledavani/"><img src="/mglass-min.svg" alt="Hledat"></a></li>
|
|
<li><a href="/kategorie/">Kategorie</a></li>
|
|
<li><a href="/tagy/">Tagy</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subnav">
|
|
<ul>
|
|
{% for item in config.extra.menu %}
|
|
<li><a href="{{ item.path }}">{{ item.name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
|
|
{% block content %}
|
|
<main>
|
|
<h2>Nejnovější recepty</h2>
|
|
<hr>
|
|
<section class="list">
|
|
{% for page in paginator.pages %}
|
|
{{ macro::print_recipe(recipe=page) }}
|
|
{% 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 %}
|
|
|
|
{% block script %}{% endblock script %}
|
|
</body>
|
|
</html>
|