Používání maker v šablonách

This commit is contained in:
Emil Miler
2021-02-09 14:44:13 +01:00
parent dbb6fb0b80
commit 3878770f1d
5 changed files with 70 additions and 53 deletions

View File

@ -20,11 +20,7 @@
</ul>
</div>
<div class="subnav">
<ul>
{% for item in config.extra.menu %}
<li><a href="{{ item.path }}">{{ item.name }}</a></li>
{% endfor %}
</ul>
{{ macro::subnav() }}
</div>
</nav>
@ -37,11 +33,9 @@
{{ macro::print_recipe(recipe=page) }}
{% endfor %}
</section>
<div class="pagination">
{% if paginator.previous %}<a href="{{ paginator.previous }}">&laquo; Předchozí stránka</a> |{% endif %}
<span>{{ paginator.current_index }} / {{ paginator.number_pagers }}</span>
{% if paginator.next %}| <a href="{{ paginator.next }}">Další stránka &raquo;</a>{% endif %}
{{ macro::pagination() }}
</div>
</main>