+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 title: Products
--- ---
subtitle: Our offer to make your life easier. subtitle: Our offer to make your life easier.
---

View File

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

View File

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

View File

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