Show content on listing pages

This commit is contained in:
Jake Howard 2022-07-16 10:39:20 +01:00
parent 3306ec4e5a
commit dddecae190
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 30 additions and 6 deletions

View file

@ -4,6 +4,12 @@
{% include "common/hero.html" %}
{% if page.body_html %}
<section class="container content">
{{ page.body_html|safe }}
</section>
{% endif %}
<section class="container">
{% for page in child_pages %}
{% if not filtering_by_tag %}

View file

@ -4,10 +4,16 @@
{% include "common/hero.html" %}
<div class="container">
{% if page.body_html %}
<section class="container content">
{{ page.body_html|safe }}
</section>
{% endif %}
<section class="container">
{% for tag in tags %}
{% include "common/listing-item.html" with page=tag %}
{% endfor %}
</div>
</section>
{% endblock content %}

View file

@ -4,10 +4,16 @@
{% include "common/hero.html" %}
<div class="container">
{% if page.body_html %}
<section class="container content">
{{ page.body_html|safe }}
</section>
{% endif %}
<section class="container">
{% for page in pages %}
{% include "common/listing-item.html" %}
{% endfor %}
</div>
</section>
{% endblock content %}

View file

@ -4,10 +4,16 @@
{% include "common/hero.html" %}
<div class="container">
{% if page.body_html %}
<section class="container content">
{{ page.body_html|safe }}
</section>
{% endif %}
<section class="container">
{% for page in child_pages %}
{% include "common/listing-item.html" %}
{% endfor %}
</div>
</section>
{% endblock content %}