+subtitle

This commit is contained in:
Nico Schottelius 2019-12-31 01:50:52 +01:00
parent 5f0f8f66db
commit 143a19efae
4 changed files with 10 additions and 4 deletions

View file

@ -3,3 +3,4 @@ _model: products
title: Products
---
subtitle: Our offer to make your life easier.
---

View file

@ -7,5 +7,9 @@ hidden = yes
label = Title
type = string
[fields.subtitle]
label = Subtitle
type = string
[children]
model = product

View file

@ -60,6 +60,7 @@
{% block content %}{% endblock %}
<hr/>
<footer class="footer mt-auto py-3">
<div class="container">
<span class="text-muted">Copyright

View file

@ -1,14 +1,15 @@
{% extends "layout-2020.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block content %}
{% block subtitle %}{{ this.subtitle }}{% endblock %}
{% block content %}
<div class="container">
{% for product in this.children %}
{% if loop.first %}
<div class="row mb-3">
{% endif %}
<div class="col-md-4">
<div class="col-md-4 mb-3">
<div class="card">
<div class="card-body">
<h5 class="card-title">{{ product.title }}</h5>
@ -19,8 +20,7 @@
</div>
{% if loop.index is divisibleby 3 %}
</div>
<hr/>
<div class="row">
<div class="row mb-3">
{% endif %}
{% if loop.last %}
</div>