blob: 6dc70c9e6a0834e139951c8852c24fc3419009a1 (
plain)
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
|
<!DOCTYPE HTML>
{{ "<!--" | safeHTML}}
Highlights by HTML5 UP
html5up.net | @n33co
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
{{ "-->" | safeHTML }}
<html>
<head>
{{ partial "head.html" . }}
</head>
<body>
{{ $list := .Site.Params.block }}
{{ partial "hero.html" (dict "block" .Site.Params.hero "params" $.Site.Params "next" (index $list 0)) }}
{{ range $index, $element := $list }}
{{ $last := eq $index (sub (len $list) 1) }}
{{ if and $.Site.Params.footer.enable $last }}
{{"<!-- Footer -->" | safeHTML}}
<section id="footer">
{{ end }}
{{ if $last }}
{{ partial (print $element.type ".html") (dict "block" $element "params" $.Site.Params) }}
{{ else }}
{{ partial (print $element.type ".html") (dict "block" $element "params" $.Site.Params "next" (index $list (add $index 1))) }}
{{ end }}
{{ if and $.Site.Params.footer.enable $last }}
{{ if $.Site.Params.footer.social_list.enable }}
{{ partial "footer-social.html" $.Site.Params.footer }}
{{ end }}
</section>
{{ end }}
{{ end }}
{{ partial "scripts.html" . }}
{{- partial "footer_custom.html" . }}
</body>
</html>
|