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 %}