From ba2c4e09f49142bedb66d990656bb34726a67981 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 30 Dec 2019 21:46:33 +0100 Subject: [PATCH] [template] cleanup --- templates/README | 4 ++ templates/macros/product.html | 5 +-- templates/products.html | 74 +---------------------------------- 3 files changed, 7 insertions(+), 76 deletions(-) create mode 100644 templates/README diff --git a/templates/README b/templates/README new file mode 100644 index 0000000..d2dfe6e --- /dev/null +++ b/templates/README @@ -0,0 +1,4 @@ +The structure of templates should be: + +- layout.html: valid for everything +- product.html: valid for all products diff --git a/templates/macros/product.html b/templates/macros/product.html index 10dfb48..5495463 100644 --- a/templates/macros/product.html +++ b/templates/macros/product.html @@ -5,15 +5,12 @@
{% set image = product.attachments.images.first() %}

{% if image %}{% else %}
{% endif %}

-
+
{% if from_index %}

{{ post.title }}

{% else %}

{{ product.title }}

{% endif %} -

{{ product.abstract }} diff --git a/templates/products.html b/templates/products.html index 52a7cc9..a3df71e 100644 --- a/templates/products.html +++ b/templates/products.html @@ -1,85 +1,15 @@ - {% extends "layout.html" %} {% from "macros/blog.html" import render_blog_post %} {% from "macros/pagination.html" import render_pagination %} {% block title %}{{ this.title }}{% endblock %} {% block body %} +

-

ungleich store

+

Products