Commit cc5ad113 authored by Pili Guerra's avatar Pili Guerra
Browse files

Update two-columns-page to add a link back to the parent page

parent ebdb4658
......@@ -2,5 +2,19 @@
{% include 'sidenav.html' %}
<div class="col-sm-12 col-xs-12 ml-sm-auto col-md-9 col-lg-9 {{ bag('alternatives', this.alt, 'order') }}">
{{ this.body }}
<div class="row">
{% for child in this.children|sort(attribute='key') %}
<div class="col-sm-6 col-md-6 col-sm-12 col-xl-6 py-3">
<div class="card h-100">
<div class="card-body">
<h4 class="card-title text-primary"><a href="{{ child.path|url }}">{{ child.title }}</a></h4>
<p class="card-text">{{ child.subtitle }}</p>
{% endfor %}
<a href="{{ this.parent|url }}">Back to {{ this.parent.title }}</a>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment