7 changed files with 79 additions and 2 deletions
@ -0,0 +1,11 @@
|
||||
[model] |
||||
name = Page (2020 Design) |
||||
label = {{ this.title }} |
||||
|
||||
[fields.title] |
||||
label = Title |
||||
type = string |
||||
|
||||
[fields.content] |
||||
label = Content |
||||
type = markdown |
@ -0,0 +1,15 @@
|
||||
[model] |
||||
name = Projects |
||||
label = Projects |
||||
hidden = yes |
||||
|
||||
[fields.title] |
||||
label = Title |
||||
type = string |
||||
|
||||
[fields.subtitle] |
||||
label = Subtitle |
||||
type = string |
||||
|
||||
[children] |
||||
model = page-2020 |
@ -0,0 +1,13 @@
|
||||
{% extends "layout-2020.html" %} |
||||
{% block title %}{{ this.title }}{% endblock %} |
||||
{% block subtitle %}{{ this.subtitle }}{% endblock %} |
||||
|
||||
{% block content %} |
||||
<div class="container"> |
||||
<div class="row mb-3"> |
||||
<div class="col-md-12"> |
||||
{{ this.content }} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endblock %} |
@ -0,0 +1,32 @@
|
||||
{% extends "layout-2020.html" %} |
||||
{% block title %}{{ this.title }}{% endblock %} |
||||
{% 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 mb-3"> |
||||
<div class="card"> |
||||
<div class="card-body"> |
||||
<h5 class="card-title">{{ product.title }}</h5> |
||||
<p class="card-text">{{ product.subtitle }}</p> |
||||
<a class="btn btn-primary" href="{{ product|url }}">Check it out</a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% if loop.index is divisibleby 3 %} |
||||
</div> |
||||
<div class="row mb-3"> |
||||
{% endif %} |
||||
{% if loop.last %} |
||||
</div> |
||||
{% endif %} |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endblock %} |
Loading…
Reference in new issue