From 4f88150e94ca06eed84fca76299050348259387a Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Tue, 2 Feb 2021 22:01:42 +0100 Subject: [PATCH] =?UTF-8?q?Pou=C5=BEit=C3=AD=20makra=20pro=20v=C3=BDpis=20?= =?UTF-8?q?receptu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 24 ++---------------------- templates/kategorie/single.html | 21 +-------------------- templates/macros.html | 20 ++++++++++++++++++++ templates/search.html | 5 ++++- templates/tagy/single.html | 22 +--------------------- 5 files changed, 28 insertions(+), 64 deletions(-) create mode 100644 templates/macros.html diff --git a/templates/index.html b/templates/index.html index 8ca0d0d..9efce84 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,3 +1,4 @@ +{% import "macros.html" as macro %} @@ -31,30 +32,9 @@

Nejnovější recepty


- {% for page in paginator.pages %} - + {{ macro::print_recipe(recipe=page) }} {% endfor %} -
- list + {% set section = get_section(path="_index.md") %} + {% for page in section.pages %} + {{ macro::print_recipe(recipe=page) }} + {% endfor %}
{% endblock content %} diff --git a/templates/tagy/single.html b/templates/tagy/single.html index 6f64c52..f660048 100644 --- a/templates/tagy/single.html +++ b/templates/tagy/single.html @@ -6,27 +6,7 @@
{% for page in term.pages %} - + {{ macro::print_recipe(recipe=page) }} {% endfor %}