From d91206659bd17c190e2940a2c564f371cafc7ebc Mon Sep 17 00:00:00 2001 From: Mathias Biilmann Christensen Date: Thu, 7 Dec 2017 00:21:51 -0800 Subject: Update hugo and content structure; add home page to CMS This updates to hugo v0.31 It also adapts the content model to follow the convention for sections with _index.md files and makes the home page a fully editable section --- site/layouts/section/contact.html | 26 ++++++++++++++++++++++++++ site/layouts/section/products.html | 32 ++++++++++++++++++++++++++++++++ site/layouts/section/values.html | 17 +++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 site/layouts/section/contact.html create mode 100644 site/layouts/section/products.html create mode 100644 site/layouts/section/values.html (limited to 'site/layouts/section') 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" . }} + +
+
+ + + + {{ .Content }} + +
+ {{ range .Params.contact_entries }} +
+

{{ .heading }}

+

{{ .text }}

+
+ {{ end }} +
+ + {{ partial "contact-form" . }} + +
+
+ +{{ 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 }} +
+
+

{{ .heading }}

+

{{ .description }}

+
+
+ + +{{ partial "image-grid" . }} +{{ end }} + +
+ {{ range .Params.testimonials }} + {{ partial "blockquote" . }} + {{ end }} +
+ + + + +{{ 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) }} + +
+ + {{ range $index, $element := .Params.values }} + {{ if modBool $index 2 }} + {{ partial "media-block" $element }} + {{ else }} + {{ partial "media-block-reverse" $element }} + {{ end }} + {{ end }} + +
+ +{{ partial "footer" . }} -- cgit v1.3