Extend Theme
This commit is contained in:
parent
7239b2c45e
commit
0cf0202035
29 changed files with 802 additions and 169 deletions
|
@ -0,0 +1,26 @@
|
|||
{{ define "main" }}
|
||||
{{ if .Params.id }}
|
||||
{{- partial "hero.html" (dict "hero" .Params "color" .Site.Params.color "odd" 0) -}}
|
||||
{{ end }}
|
||||
{{.Content}}
|
||||
<div>
|
||||
{{- range $index, $page := .Pages }}
|
||||
{{ $odd := mod (add $index 1) 2 }}
|
||||
{{ 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 }}
|
||||
</div>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue