ADD quote and default section, ADD cover images to lists, FIX contact section
This commit is contained in:
parent
e6257036b9
commit
57e72154a5
8 changed files with 82 additions and 15 deletions
|
@ -1,4 +1,11 @@
|
|||
{{ define "main" }}
|
||||
{{ with .Params.image }}
|
||||
{{ if .url }}
|
||||
<img class="coverimage" src="{{ .url }}" alt="{{ .alt }}" />
|
||||
{{ else }}
|
||||
<img class="coverimage" src="{{ . }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if .Content }}
|
||||
<div class="content">
|
||||
{{ with .Title }}
|
||||
|
@ -32,9 +39,13 @@
|
|||
{{- partial "logos.html" (dict "id" $id "logos" .Params "odd" $odd) -}}
|
||||
{{ else if eq .Params.type "links" }}
|
||||
{{- partial "links.html" (dict "id" $id "links" .Params "defaultimage" $.Site.Params.defaultimage "odd" $odd) -}}
|
||||
{{ else if eq .Params.type "quote" }}
|
||||
{{- partial "quote.html" (dict "id" $id "quote" .Params "content" .Content "odd" $odd) -}}
|
||||
{{ 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) -}}
|
||||
{{ else if .IsPage }}
|
||||
{{- partial "default.html" (dict "id" $id "params" .Params "content" .Content "odd" $odd) -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue