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

- Posted on {{ product.pub_date }} by {% if product.twitter_handle %}{{ post.author or post.twitter_handle }}{% else %}{{ post.author }} {% 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