+ 3 more offer fields

This commit is contained in:
Nico Schottelius 2020-03-23 18:09:06 +01:00
parent c41d7c0944
commit e53f8184b0
3 changed files with 125 additions and 5 deletions

View file

@ -6,15 +6,40 @@ title: Demo product
--- ---
subtitle: Using all possible fields subtitle: Using all possible fields
--- ---
description1: This is the first markdown description block description1:
## This is the first markdown description block
Description content
--- ---
description2: This is the second markdown description block description2:
## This is the second markdown description block
Description content
--- ---
description3: This is the third markdown description block description3:
## This is the third markdown description block
Description content
--- ---
description4: This is the fourth markdown description block description4:
## This is the fourth markdown description block
Description content
--- ---
description5: This is the fifth markdown description block description5:
## This is the fifth markdown description block
Description content
--- ---
link: https://link-to-the-real-product.ch link: https://link-to-the-real-product.ch
--- ---
@ -56,6 +81,24 @@ offer3_text: The text for the third offer
--- ---
offer3_link: https://ungleich.ch offer3_link: https://ungleich.ch
--- ---
offer4_title: Title of 4. offer
---
offer4_text: The text for the third offer
---
offer4_link: https://ungleich.ch
---
offer5_title: Title of 5. offer
---
offer5_text: The text for the third offer
---
offer5_link: https://ungleich.ch
---
offer6_title: Title of 6. offer
---
offer6_text: The text for the third offer
---
offer6_link: https://ungleich.ch
---
description: description:
The real field [Nico](https://www.nico.schottelius.org) wants to use! The real field [Nico](https://www.nico.schottelius.org) wants to use!
--- ---

View file

@ -138,6 +138,42 @@ type = markdown
label = Offer 3 Link label = Offer 3 Link
type = url type = url
[fields.offer4_title]
label = Offer 4 Title
type = string
[fields.offer4_text]
label = Offer 4 Text
type = markdown
[fields.offer4_link]
label = Offer 4 Link
type = url
[fields.offer5_title]
label = Offer 5 Title
type = string
[fields.offer5_text]
label = Offer 5 Text
type = markdown
[fields.offer5_link]
label = Offer 5 Link
type = url
[fields.offer6_title]
label = Offer 6 Title
type = string
[fields.offer6_text]
label = Offer 6 Text
type = markdown
[fields.offer6_link]
label = Offer 6 Link
type = url
[fields.image] [fields.image]
label = Index Image label = Index Image
type = url type = url

View file

@ -119,6 +119,47 @@
</div> </div>
</div> </div>
</div> </div>
<div class="container">
<div class="row mb-3">
<div class="col-md-4">
{% if this.offer4_title and this.offer4_text and this.offer4_link %}
<div class="card">
<div class="card-body">
<h5 class="card-title">{{ this.offer4_title }}</h5>
<p class="card-text">{{ this.offer4_text }}</p>
<a href="{{ this.offer4_link }}" class="btn btn-primary">Order</a>
</div>
</div>
{% endif %}
</div>
<div class="col-md-4">
{% if this.offer5_title and this.offer5_text and this.offer5_link %}
<div class="card">
<div class="card-body">
<h5 class="card-title">{{ this.offer5_title }}</h5>
<p class="card-text">{{ this.offer5_text }}</p>
<a href="{{ this.offer5_link }}" class="btn btn-primary">Order</a>
</div>
</div>
{% endif %}
</div>
<div class="col-md-4">
{% if this.offer6_title and this.offer6_text and this.offer6_link %}
<div class="card">
<div class="card-body">
<h5 class="card-title">{{ this.offer6_title }}</h5>
<p class="card-text">{{ this.offer6_text }}</p>
<a href="{{ this.offer6_link }}" class="btn btn-primary">Order</a>
</div>
</div>
{% endif %}
</div>
</div>
</div>
<hr/>
{% if this.description5 %} {% if this.description5 %}
<div class="container"> <div class="container">
<div class="row mb-3"> <div class="row mb-3">