2022-06-27 14:09:44 +00:00
|
|
|
{{ define "main" }}
|
2022-06-29 11:03:51 +00:00
|
|
|
{{ if .Content }}
|
|
|
|
<div class="content">
|
|
|
|
{{ with .Title }}
|
|
|
|
<div class="title">
|
|
|
|
<h1 class="content-title">{{ . }}</h1>
|
|
|
|
<div class="divider"></div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{.Content}}
|
|
|
|
</div>
|
2022-07-08 15:01:05 +00:00
|
|
|
{{ else }}
|
|
|
|
<div class="header-blocker"></div>
|
2022-06-29 11:03:51 +00:00
|
|
|
{{ end }}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{- range $index, $page := .Pages }}
|
2022-06-29 11:03:51 +00:00
|
|
|
{{ $odd := mod $index 2 }}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ if eq .Params.type "slider" }}
|
|
|
|
{{- partial "slider.html" (dict "id" $page.File.ContentBaseName "slider" .Params "color" $.Site.Params.color "odd" $odd) -}}
|
|
|
|
{{ else if eq .Params.type "hero" }}
|
|
|
|
{{- partial "hero.html" (dict "id" $page.File.ContentBaseName "hero" .Params "color" $.Site.Params.color "odd" $odd) -}}
|
|
|
|
{{ else if eq .Params.type "video" }}
|
|
|
|
{{- partial "video.html" (dict "id" $page.File.ContentBaseName "video" .Params "odd" $odd) -}}
|
|
|
|
{{ else if eq .Params.type "service" }}
|
|
|
|
{{- partial "service.html" (dict "id" $page.File.ContentBaseName "service" .Params "content" .Content "odd" $odd) -}}
|
|
|
|
{{ else if eq .Params.type "contact" }}
|
|
|
|
{{- partial "contact.html" (dict "id" $page.File.ContentBaseName "contact" .Params "odd" $odd) -}}
|
|
|
|
{{ else if eq .Params.type "logos" }}
|
|
|
|
{{- partial "logos.html" (dict "id" $page.File.ContentBaseName "logos" .Params "odd" $odd) -}}
|
|
|
|
{{ else if eq .Params.type "links" }}
|
|
|
|
{{- partial "links.html" (dict "id" $page.File.ContentBaseName "links" .Params "defaultimage" $.Site.Params.defaultimage "odd" $odd) -}}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|