Begin to phase in first projects

This commit is contained in:
Nico Schottelius 2020-01-04 14:08:07 +01:00
parent a4dc773df3
commit 6b8e24d46b
3 changed files with 14 additions and 4 deletions

View file

@ -0,0 +1,6 @@
_model: page-2020
---
title: Hacking Hotel Diesbach
---
subtitle: A space for creative minds in the heart of Switzerland
---

View file

@ -6,6 +6,10 @@ label = {{ this.title }}
label = Title label = Title
type = string type = string
[fields.subtitle]
label = Subtitle
type = string
[fields.content] [fields.content]
label = Content label = Content
type = markdown type = markdown

View file

@ -5,16 +5,16 @@
{% block content %} {% block content %}
<div class="container"> <div class="container">
{% for product in this.children %} {% for childpage 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 mb-3"> <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">{{ childpage.title }}</h5>
<p class="card-text">{{ product.subtitle }}</p> <p class="card-text">{{ childpage.subtitle }}</p>
<a class="btn btn-primary" href="{{ product|url }}">Check it out</a> <a class="btn btn-primary" href="{{ childpage|url }}">Check it out</a>
</div> </div>
</div> </div>
</div> </div>