forked from nestordedios/bolt-theme-editorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
record.twig
30 lines (24 loc) · 1.1 KB
/
record.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% extends 'partials/_master.twig' %}
{% block main %}
<!-- Content -->
<section>
<header class="main">
<h1>{{ record.title }}</h1>
</header>
{% if record.image is not empty %}
<span class="image main">
{{ record.image|showimage('1154', '375') }}
</span>
{% endif %}
{# Output all fields(excluding image field already output before) in the order as defined in the contenttype.
To change the generated html and configure the options, see:
https://docs.bolt.cm/templating #}
{% with { 'record': record, 'common': false, 'repeaters': true, 'exclude': ['image'] } %}
{{ block('sub_fields', 'partials/_sub_fields.twig') }}
{% endwith %}
{# Uncomment this if you wish to dump the entire record to the client, for debugging purposes.
{{ dump(record) }}
#}
{% include 'partials/_recordfooter.twig' with { 'record': record, 'extended': true } %}
</section>
{% endblock main %}