From df5977bb189fb9c77a28562320c9c201f9b173cb Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Mon, 11 Apr 2022 22:41:59 +0200 Subject: [PATCH] =?UTF-8?q?Zm=C4=9Bna=20z=C3=A1vislost=C3=AD=20=C5=A1ablon?= =?UTF-8?q?=20na=20base.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/base.html | 28 +++++++++++++++ templates/index.html | 61 ++++++++------------------------- templates/kategorie/list.html | 2 +- templates/kategorie/single.html | 2 +- templates/page.html | 4 +-- templates/search.html | 2 +- templates/tagy/list.html | 2 +- templates/tagy/single.html | 2 +- 8 files changed, 49 insertions(+), 54 deletions(-) create mode 100644 templates/base.html diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..2b86ce1 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,28 @@ +{% import "macros.html" as macro %} + + + + + + {% block title %}{{ config.title }}{% endblock title %} + + + + + + {% block content %}{% endblock content %} + {% block script %}{% endblock script %} + + diff --git a/templates/index.html b/templates/index.html index 35959dd..38bebaf 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,46 +1,15 @@ -{% import "macros.html" as macro %} - - - - - - {% block title %}{{ config.title }}{% endblock title %} - - - - - - - - {% block content %} -
-

Nejnovější recepty

-
-
- {% for page in paginator.pages %} - {{ macro::print_recipe(recipe=page) }} - {% endfor %} -
- - - -
- {% endblock content %} - - {% block script %}{% endblock script %} - - +{% extends "base.html" %} +{% block content %} +
+

Nejnovější recepty

+
+
+ {% for page in paginator.pages %} + {{ macro::print_recipe(recipe=page) }} + {% endfor %} +
+ +
+{% endblock content %} diff --git a/templates/kategorie/list.html b/templates/kategorie/list.html index 38572a9..932fb2a 100644 --- a/templates/kategorie/list.html +++ b/templates/kategorie/list.html @@ -1,4 +1,4 @@ -{% extends "index.html" %} +{% extends "base.html" %} {% block content %}
diff --git a/templates/kategorie/single.html b/templates/kategorie/single.html index f660048..86599fe 100644 --- a/templates/kategorie/single.html +++ b/templates/kategorie/single.html @@ -1,4 +1,4 @@ -{% extends "index.html" %} +{% extends "base.html" %} {% block content %}
diff --git a/templates/page.html b/templates/page.html index f6db7c6..a6d6378 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,10 +1,9 @@ -{% extends "index.html" %} +{% extends "base.html" %} {% block title %}{{ config.title }} — {{ page.title }}{% endblock title %} {% block content %}
-

{{ page.title | upper }}


{{ macro::recipe_image() }} @@ -18,7 +17,6 @@
{{ macro::recipe_taxonomies() }} -
{% endblock content %} diff --git a/templates/search.html b/templates/search.html index 3201576..6b1425e 100644 --- a/templates/search.html +++ b/templates/search.html @@ -1,4 +1,4 @@ -{% extends "index.html" %} +{% extends "base.html" %} {% block content %}
diff --git a/templates/tagy/list.html b/templates/tagy/list.html index 0466876..2de8887 100644 --- a/templates/tagy/list.html +++ b/templates/tagy/list.html @@ -1,4 +1,4 @@ -{% extends "index.html" %} +{% extends "base.html" %} {% block content %}
diff --git a/templates/tagy/single.html b/templates/tagy/single.html index f660048..86599fe 100644 --- a/templates/tagy/single.html +++ b/templates/tagy/single.html @@ -1,4 +1,4 @@ -{% extends "index.html" %} +{% extends "base.html" %} {% block content %}