-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.twig
56 lines (51 loc) · 1.21 KB
/
index.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{# Index aka Homepage #}
{% extends "twig/_index.twig" %}
{% import "twig/partials/_macros.twig" as m %}
{# Ucomment this to do not render navbar in the homepage #}
{#
{% block document %}
{% set htmlClass = "" %}
{{ parent() }}
{% endblock %}
{% block navbar %}{% endblock %}
#}
{# Customize header section#}
{% block header %}
{% set content %}
<div class="container">
{% if homepage %}
<h1 class="title is-1">{{ homepage|title }}</h1>
<div class="subtitle">
<div class="content">
{{ homepage.introduction|default }}
</div>
</div>
{% endif %}
</div>
{% endset %}
{% with {
content: content,
image: homepage.image,
class: config.get('theme/layout/class/header_index')
}%}
{{ block('hero', 'section_blocks.twig') }}
{%- endwith -%}
{% endblock %}
{# Use SVG LOGO on the index header #}
{#
{% block header %}
{% set content %}
<div class="container">
{% if homepage %}
<div class="logo"></div>
{% endif %}
</div>
{% endset %}
{% with {
content: content,
class: config.get('theme/layout/class/header_index')
}%}
{{ block('hero', 'section_blocks.twig') }}
{%- endwith -%}
{% endblock %}
#}