diff --git a/content/u/products/ipv6-only-hosting/contents.lr b/content/u/products/ipv6-only-hosting/contents.lr new file mode 100644 index 0000000..ab9b7ec --- /dev/null +++ b/content/u/products/ipv6-only-hosting/contents.lr @@ -0,0 +1,11 @@ +name: IPv6 Only Hosting +--- +buy_link: https://google.com +--- +description: Hi there this is descriptino +--- +_discoverable: yes +--- +_hidden: no +--- +teaser: We provide best IPv6 only hosting diff --git a/content/u/products/ipv6vpn/contents.lr b/content/u/products/ipv6vpn/contents.lr new file mode 100644 index 0000000..e880f5f --- /dev/null +++ b/content/u/products/ipv6vpn/contents.lr @@ -0,0 +1,11 @@ +name: IPv6 VPN +--- +_discoverable: yes +--- +_hidden: no +--- +buy_link: http://ungleich.ch +--- +description: This is description +--- +teaser: This is teaser diff --git a/models/product.ini b/models/product.ini index 301f659..e677a7a 100644 --- a/models/product.ini +++ b/models/product.ini @@ -1,17 +1,25 @@ [model] -name = Product name +name = Product label = {{ this.title }} hidden = yes -[fields.title] -label = Title +[fields.name] +label = Product Name type = string size = large -[fields.body] -label = Body -type = markdown +[fields.teaser] +label = Teaser +type = string +width = 1/2 -[fields.abstract] -label = Abstract -type = markdown +[fields.description] +label = Description +type = string +width = 1/4 +addon_label = @ + +[fields.buy_link] +label = Buy Link +type = url +width = 1/4 diff --git a/models/products.ini b/models/products.ini new file mode 100644 index 0000000..baabe3f --- /dev/null +++ b/models/products.ini @@ -0,0 +1,8 @@ +[model] +name = Products +label = Products +hidden = yes + +[fields.title] +label = Title +type = string diff --git a/templates/macros/product.html b/templates/macros/product.html new file mode 100644 index 0000000..10dfb48 --- /dev/null +++ b/templates/macros/product.html @@ -0,0 +1,29 @@ +{% macro render_product(product, from_index=false) %} + {% if from_index %} +
+
+
+ {% set image = product.attachments.images.first() %} +

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

+
+
+ {% if from_index %}

{{ post.title }}

+ {% else %} +

{{ product.title }}

+ {% endif %} + +

+

+ {{ product.abstract }} +

+

+
+
+
+
+ {% else %} + {{ product.body }} + {% endif %} +{% endmacro %} diff --git a/templates/product.html b/templates/product.html index dde0586..c32be85 100644 --- a/templates/product.html +++ b/templates/product.html @@ -1,143 +1,105 @@ - - - - + - - - {{ this.title }} - - - - -
-
-

Punny headline

-

And an even wittier subheading - to boot. Jumpstart your marketing efforts with this example based - on Apple’s marketing pages.

- Get it here! -
-
-
+
+ + +
+
+
+

Product 4

+
+
+ Panel content +
+
+
+ - -
-
-
-

Punny headlineX

-

And an even wittier subheading - to boot. Jumpstart your marketing efforts with this example based - on Apple’s marketing pages.

- Get it here! - -
-
-

Punny headlineX

-

And an even wittier subheading - to boot. Jumpstart your marketing efforts with this example based - on Apple’s marketing pages.

- Get it here! -
-
-

Punny headlineX

-

And an even wittier subheading - to boot. Jumpstart your marketing efforts with this example based - on Apple’s marketing pages.

- Get it here! + --> +{% 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

+
+
- -
-
-
-
-
-
Card title
-

Some quick example text to build on the card title and make up the bulk of the card's content.

- Go somewhere +
+
+
+
+
+
+
+

{{this.name}}

+
+
+ {{this.description}}
-
-
-
-
-
Card title
-

Some quick example text to build on the card title and make up the bulk of the card's content.

- Go somewhere -
-
-
-
-
-
-
Card title
-

Some quick example text to build on the card title and make up the bulk of the card's content.

- Go somewhere -
-
-
-
- -
-
-
-
- Pellentesque aliquam ac elit in rutrum. Cras hendrerit lorem pharetra lectus porttitor, vel maximus lorem viverra. Mauris blandit nulla lectus, sed cursus elit dictum vitae. Donec ullamcorper enim ac lectus laoreet, non tincidunt lorem suscipit. -
- -
- -
-
- - - - - - - +
+
+{% endblock %} diff --git a/templates/products.html b/templates/products.html new file mode 100644 index 0000000..52a7cc9 --- /dev/null +++ b/templates/products.html @@ -0,0 +1,107 @@ + +{% 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

+
+ +
+
+
+
+
+
+
+ {% for product in this.children %} +
+
+
+

{{product.name}}

+
+
+ {{product.teaser}} +
+
+
+ {% endfor %} +
+
+
+{% endblock %}