From ef8e147a9ce2f9c661c0ad37ad078dc6bda7dd4d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 30 Dec 2019 23:09:33 +0100 Subject: [PATCH] add a testproduct --- .../u/products/ipv6-only-hosting/contents.lr | 10 +- content/u/testproduct/contents.lr | 15 ++ models/product.ini | 9 +- models/testproduct.ini | 18 ++ templates/layout-2020.html | 156 ++++++++++++++++++ templates/product.html | 71 -------- templates/products.html | 21 +-- templates/testproduct.html | 33 ++++ 8 files changed, 243 insertions(+), 90 deletions(-) create mode 100644 content/u/testproduct/contents.lr create mode 100644 models/testproduct.ini create mode 100644 templates/layout-2020.html create mode 100644 templates/testproduct.html diff --git a/content/u/products/ipv6-only-hosting/contents.lr b/content/u/products/ipv6-only-hosting/contents.lr index ab9b7ec..643c7ca 100644 --- a/content/u/products/ipv6-only-hosting/contents.lr +++ b/content/u/products/ipv6-only-hosting/contents.lr @@ -1,11 +1,13 @@ name: IPv6 Only Hosting --- -buy_link: https://google.com ---- -description: Hi there this is descriptino +link: https://ipv6onlyhosting.com --- _discoverable: yes --- _hidden: no --- -teaser: We provide best IPv6 only hosting +abstract: We provide best IPv6 only hosting +--- +description: + +Hi there this is descriptino diff --git a/content/u/testproduct/contents.lr b/content/u/testproduct/contents.lr new file mode 100644 index 0000000..4b8adcd --- /dev/null +++ b/content/u/testproduct/contents.lr @@ -0,0 +1,15 @@ +_discoverable: yes +--- +_hidden: no +--- +_model: testproduct +--- +title: IPv6 VPN +--- +subtitle: The IPv6 VPN allows you to reach the IPv6 Internet from everywhere! +--- +link: http://ungleich.ch +--- +description: This is description +--- +teaser: This is teaser diff --git a/models/product.ini b/models/product.ini index e677a7a..703ab9f 100644 --- a/models/product.ini +++ b/models/product.ini @@ -8,8 +8,8 @@ label = Product Name type = string size = large -[fields.teaser] -label = Teaser +[fields.abstract] +label = Abstract type = string width = 1/2 @@ -17,9 +17,8 @@ width = 1/2 label = Description type = string width = 1/4 -addon_label = @ -[fields.buy_link] -label = Buy Link +[fields.link] +label = Link type = url width = 1/4 diff --git a/models/testproduct.ini b/models/testproduct.ini new file mode 100644 index 0000000..6ff1ce9 --- /dev/null +++ b/models/testproduct.ini @@ -0,0 +1,18 @@ +[model] +name = Product +label = {{ this.title }} +hidden = yes + +[fields.title] +label = Product Name +type = string +size = large + +[fields.subtitle] +label = subtitle +type = string + +[fields.link] +label = Link +type = url +width = 1/4 diff --git a/templates/layout-2020.html b/templates/layout-2020.html new file mode 100644 index 0000000..00476b1 --- /dev/null +++ b/templates/layout-2020.html @@ -0,0 +1,156 @@ + + + + + + + + + + + {% block title %}Welcome to {% endblock %} | ungleich.ch + + + + + +
+
+

{{ self.title() }}

+

+ {% block subtitle %}{% endblock %} +

+
+
+
+
+ +
+
+
+

Feature1

+

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

+
+
+

feature2

+

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

+
+
+

feature3

+

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

+
+
+
+ +
+
+
+ UPPER-CONTENT non caps! +
+
+ +
+
+
+ +
+
+
+
+
+
Offer 1
+

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

+ Go somewhere +
+
+
+
+
+
+
Offer 2
+

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

+ Go somewhere +
+
+
+
+
+
+
Offer 3
+

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

+ Go somewhere +
+
+
+
+
+ +
+ +
+
+
+ LOWER-CONTENT +
+
+ +
+
+
+ + + + + + + diff --git a/templates/product.html b/templates/product.html index c32be85..4f801c1 100644 --- a/templates/product.html +++ b/templates/product.html @@ -1,74 +1,3 @@ - {% extends "layout.html" %} {% from "macros/blog.html" import render_blog_post %} {% from "macros/pagination.html" import render_pagination %} diff --git a/templates/products.html b/templates/products.html index a3df71e..b573313 100644 --- a/templates/products.html +++ b/templates/products.html @@ -17,21 +17,22 @@ +
-
+
{% for product in this.children %}
-
-
-

{{product.name}}

-
-
- {{product.teaser}} -
-
+
+
+

{{ product.name}}

+
+
+ {{product.teaser}} +
+
{% endfor %} -
+
{% endblock %} diff --git a/templates/testproduct.html b/templates/testproduct.html new file mode 100644 index 0000000..8bf91e6 --- /dev/null +++ b/templates/testproduct.html @@ -0,0 +1,33 @@ +{% extends "layout-2020.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block subtitle %}{{ this.subtitle }}{% endblock %} +{% block body %} +
+
+
+
+
+

ungleich store

+
+ +
+
+
+
+
+
+
+
+
+
+

{{this.name}}

+
+
+ {{this.description}} +
+
+
+
+
+ +{% endblock %}