-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.twig
68 lines (52 loc) · 2.09 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
57
58
59
60
61
62
63
64
65
66
67
68
{#!
# Freelancer for Pico v2.0.7 (https://github.com/mayamcdougall/freelancer-pico)
# Ported by Maya McDougall (https://github.com/mayamcdougall)
# Based on upstream Freelancer v7.0.4 by Start Bootstrap (https://startbootstrap.com/theme/freelancer)
# Licensed under MIT (https://github.com/mayamcdougall/freelancer-pico/blob/main/LICENSE)
#}
{% set index = pages["index"].meta %}
{% if current_page.id != "index" %}
{% set single_page_mode = true %}
{% endif %}
{% if not index.portfolio.disabled %}
{% set portfolio_items = [] %}
{% for page in pages() %}
{% if not page.hidden %}
{% set portfolio_items = portfolio_items|merge([page]) %}
{% endif %}
{% endfor %}
{% if not portfolio_items or "Pico is a stupidly simple" in index.description %}
{% set portfolio_items = config.theme_config.demo.portfolio_items %}
{% endif %}
{% endif %}
<!DOCTYPE html>
<html lang="en">
{% include "includes/head.twig" %}
<body id="page-top">
{% if not index.nav.disabled %}
{% include "includes/navigation.twig" %}
{% endif %}
{% include "includes/yaml_error.twig" %}
{% if not index.header.disabled and not single_page_mode %}
{% include "includes/header.twig" %}
{% elseif not index.nav.disabled %}
<div class="mb-5 pb-5 pt-2"></div>
{% endif %}
{% if single_page_mode %}
{% include "includes/content.twig" %}
{% endif %}
{% if not index.portfolio.disabled and not single_page_mode %}
{% include "includes/portfolio.twig" %}
{% endif %}
{% if not index.about.disabled and not single_page_mode %}
{% include "includes/about.twig" %}
{% endif %}
{% if not index.contact.disabled and not single_page_mode %}
{% include "includes/contact.twig" %}
{% endif %}
{% include "includes/footer.twig" %}
{% if not index.portfolio.disabled and not single_page_mode %}
{% include "includes/portfolio_modals.twig" %}
{% endif %}
</body>
</html>