Browse Source

Also populate / show the description field

refactoring
Nico Schottelius 3 years ago
parent
commit
8f1338e012
  1. 3
      content/u/products/sample-product/contents.lr
  2. 11
      templates/product.html

3
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!
---

11
templates/product.html

@ -3,6 +3,15 @@
{% block subtitle %}{{ this.subtitle }}{% endblock %}
{% block content %}
{% if this.description %}
<div class="container">
<div class="row mb-3">
<div class="col-md-12">
{{ this.description }}
</div>
</div>
</div>
{% endif %}
<div class="container">
<div class="row mb-5">
<div class="col-md-4">
@ -19,7 +28,6 @@
</div>
</div>
</div>
<div class="container">
<div class="row mb-3">
<div class="col-md-7">
@ -32,7 +40,6 @@
</div>
</div>
</div>
<div class="container">
<div class="row mb-3">
<div class="col-md-4">

Loading…
Cancel
Save