diff options
| author | Mathias Biilmann <info@mathias-biilmann.net> | 2017-12-07 10:20:11 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-07 10:20:11 -0800 |
| commit | 8745627e7d171b4b1fd2062b4328bf23899663e9 (patch) | |
| tree | 5f0399bf843f5a3055e0bb6d3da6774b1a01f307 /site/layouts/section | |
| parent | 2db9a63c54df63e95c1fbf39391d201c98a62b86 (diff) | |
| parent | a4bfd44601069a1b054c396ad754c8a2b7ec688c (diff) | |
Merge pull request #11 from netlify-templates/update-for-cms-1-0
Update for CMS 1.0
Diffstat (limited to 'site/layouts/section')
| -rw-r--r-- | site/layouts/section/contact.html | 26 | ||||
| -rw-r--r-- | site/layouts/section/products.html | 32 | ||||
| -rw-r--r-- | site/layouts/section/values.html | 17 |
3 files changed, 75 insertions, 0 deletions
diff --git a/site/layouts/section/contact.html b/site/layouts/section/contact.html new file mode 100644 index 0000000..205d92e --- /dev/null +++ b/site/layouts/section/contact.html @@ -0,0 +1,26 @@ +{{ partial "head" . }} + +{{ partial "nav" . }} + +<div class="ph3 bg-off-white"> + <div class="center mw6 pv3"> + + <img src="{{ .Params.logo }}" alt="" class="db w4 center pv4"> + + {{ .Content }} + + <div class="flex-ns mb3"> + {{ range .Params.contact_entries }} + <div> + <h4 class="f4 b lh-title mb2 primary">{{ .heading }}</h4> + <p>{{ .text }}</p> + </div> + {{ end }} + </div> + + {{ partial "contact-form" . }} + + </div> +</div> + +{{ partial "footer" . }} diff --git a/site/layouts/section/products.html b/site/layouts/section/products.html new file mode 100644 index 0000000..bf430ca --- /dev/null +++ b/site/layouts/section/products.html @@ -0,0 +1,32 @@ +{{ partial "head" . }} +{{ partial "nav" . }} + +{{ partial "jumbotron" (dict "imageUrl" .Params.image "title" .Title) }} + +{{ partial "4-up" .Params.intro }} + + +{{ with .Params.main }} +<div class="mw7 center"> + <div class="mw6 ph3 mb3"> + <h3 class="f3 b lh-title mb2">{{ .heading }}</h3> + <p>{{ .description }}</p> + </div> +</div> + +<!-- Image grid --> +{{ partial "image-grid" . }} +{{ end }} + +<div class="pb4"> + {{ range .Params.testimonials }} + {{ partial "blockquote" . }} + {{ end }} +</div> + +<!-- Full-width image --> +<img src="{{ .Params.full_image }}" alt="" class="db w-100"> + +{{ partial "table" .Params.pricing }} + +{{ partial "footer" . }} diff --git a/site/layouts/section/values.html b/site/layouts/section/values.html new file mode 100644 index 0000000..9b6fa13 --- /dev/null +++ b/site/layouts/section/values.html @@ -0,0 +1,17 @@ +{{ partial "head" . }} +{{ partial "nav" . }} +{{ partial "jumbotron" (dict "imageUrl" .Params.image "title" .Title) }} + +<div class="mw7 center ph3 pt4"> + + {{ range $index, $element := .Params.values }} + {{ if modBool $index 2 }} + {{ partial "media-block" $element }} + {{ else }} + {{ partial "media-block-reverse" $element }} + {{ end }} + {{ end }} + +</div> + +{{ partial "footer" . }} |
