From 8f1338e012f4c9976777ee6e4cfa3a8fa6a2bb66 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 3 Jan 2020 19:21:14 +0100 Subject: [PATCH] Also populate / show the description field --- content/u/products/sample-product/contents.lr | 3 +++ templates/product.html | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/content/u/products/sample-product/contents.lr b/content/u/products/sample-product/contents.lr index 1cca46b..8a41475 100644 --- a/content/u/products/sample-product/contents.lr +++ b/content/u/products/sample-product/contents.lr @@ -46,3 +46,6 @@ offer3_text: The text for the third offer --- offer3_link: https://ungleich.ch --- +description: +The real field [Nico](https://www.nico.schottelius.org) wants to use! +--- diff --git a/templates/product.html b/templates/product.html index 3706dff..3add56e 100644 --- a/templates/product.html +++ b/templates/product.html @@ -3,6 +3,15 @@ {% block subtitle %}{{ this.subtitle }}{% endblock %} {% block content %} +{% if this.description %} +
+
+
+ {{ this.description }} +
+
+
+{% endif %}
@@ -19,7 +28,6 @@
-
@@ -32,7 +40,6 @@
-