2022-06-27 14:09:44 +00:00
|
|
|
{{ define "main" }}
|
2024-03-15 16:37:03 +00:00
|
|
|
{{ with .Params.image }}
|
|
|
|
{{ if .url }}
|
|
|
|
<img class="coverimage" src="{{ .url }}" alt="{{ .alt }}" />
|
|
|
|
{{ else }}
|
|
|
|
<img class="coverimage" src="{{ . }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
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 }}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{ $id := .Params.id | default $page.File.ContentBaseName }}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ if eq .Params.type "slider" }}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{- partial "slider.html" (dict "id" $id "slider" .Params "color" $.Site.Params.color "odd" $odd) -}}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ else if eq .Params.type "hero" }}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{- partial "hero.html" (dict "id" $id "hero" .Params "content" .Content "color" $.Site.Params.color "odd" $odd) -}}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ else if eq .Params.type "video" }}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{- partial "video.html" (dict "id" $id "video" .Params "odd" $odd) -}}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ else if eq .Params.type "service" }}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{- partial "service.html" (dict "id" $id "service" .Params "content" .Content "odd" $odd) -}}
|
|
|
|
{{ else if eq .Params.type "team" }}
|
|
|
|
{{ $pages := where $.Site.RegularPages "Section" $id }}
|
|
|
|
{{- partial "team.html" (dict "id" $id "team" .Params "pages" $pages "defaultimage" $.Site.Params.defaultimage "odd" $odd) -}}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ else if eq .Params.type "contact" }}
|
2023-11-21 16:33:04 +00:00
|
|
|
{{- partial "contact.html" (dict "id" $id "contact" .Params "content" .Content "odd" $odd) -}}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ else if eq .Params.type "logos" }}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{- partial "logos.html" (dict "id" $id "logos" .Params "odd" $odd) -}}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ else if eq .Params.type "links" }}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{- partial "links.html" (dict "id" $id "links" .Params "defaultimage" $.Site.Params.defaultimage "odd" $odd) -}}
|
2024-03-15 16:37:03 +00:00
|
|
|
{{ else if eq .Params.type "quote" }}
|
|
|
|
{{- partial "quote.html" (dict "id" $id "quote" .Params "content" .Content "odd" $odd) -}}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{ else if eq .Params.type "posts" }}
|
|
|
|
{{ $pages := where $.Site.RegularPages "Section" $id }}
|
|
|
|
{{- partial "posts.html" (dict "id" $id "posts" .Params "pages" $pages "defaultimage" $.Site.Params.defaultimage "odd" $odd) -}}
|
2024-03-15 16:37:03 +00:00
|
|
|
{{ else if .IsPage }}
|
|
|
|
{{- partial "default.html" (dict "id" $id "params" .Params "content" .Content "odd" $odd) -}}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2024-03-15 16:37:03 +00:00
|
|
|
{{ end }}
|