CHANGE section design to be more dynamic
This commit is contained in:
parent
6032aebe80
commit
7239b2c45e
14 changed files with 90 additions and 83 deletions
|
@ -3,14 +3,22 @@
|
|||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
{{- partial "slider.html" . -}}
|
||||
<div id="content" class="content">
|
||||
{{- partial "video.html" . -}}
|
||||
{{- partial "services.html" . -}}
|
||||
{{- partial "team.html" . -}}
|
||||
{{- partial "contact.html" . -}}
|
||||
{{- partial "funding.html" . -}}
|
||||
</div>
|
||||
{{- 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 }}
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue