squirrel/layouts/index.html

24 lines
1.1 KiB
HTML
Raw Normal View History

2021-02-25 21:23:58 +00:00
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
{{- range $index, $section := .Site.Params.sections }}
{{ $odd := mod $index 2 }}
{{if eq .type "slider" }}
{{- partial "slider.html" (dict "slider" $section "odd" $odd) -}}
{{ else if eq .type "video" }}
{{- partial "video.html" (dict "video" $section "odd" $odd) -}}
{{ else if eq .type "service" }}
{{- partial "service.html" (dict "service" $section "odd" $odd) -}}
{{ else if eq .type "team" }}
{{- partial "team.html" (dict "team" $section "odd" $odd) -}}
{{ else if eq .type "contact" }}
{{- partial "contact.html" (dict "contact" $section "odd" $odd) -}}
{{ else if eq .type "logos" }}
{{- partial "logos.html" (dict "logos" $section "odd" $odd) -}}
{{end}}
{{- end }}
2021-02-25 21:23:58 +00:00
{{- partial "footer.html" . -}}
</body>
</html>