Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html « layouts - github.com/schmanat/hugo-highlights-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8281abea1e24dded792f7ec23b03ba162832ef8a (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
<!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" . }}
	</body>
</html>