From 988a3cd185b9e0268ad220b6f506acf446a35447 Mon Sep 17 00:00:00 2001 From: Mathias Biilmann Christensen Date: Tue, 21 Feb 2017 00:50:28 -0800 Subject: Make product page use content from frontmatter --- site/layouts/partials/4-up.html | 33 ++++++--------------------------- site/layouts/partials/blockquote.html | 4 ++-- site/layouts/partials/head.html | 2 +- site/layouts/partials/image-grid.html | 6 +++--- site/layouts/partials/table-column.html | 11 ++++------- site/layouts/partials/table.html | 17 ++++------------- 6 files changed, 20 insertions(+), 53 deletions(-) (limited to 'site/layouts/partials') diff --git a/site/layouts/partials/4-up.html b/site/layouts/partials/4-up.html index dcfbbbf..d57d043 100644 --- a/site/layouts/partials/4-up.html +++ b/site/layouts/partials/4-up.html @@ -4,33 +4,12 @@

{{.description}}

- -
- -

{{.text1}}

-
- -
- -

{{.text2}}

-
- -
- -

{{.text3}}

-
- -
- -

{{.text4}}

-
- + {{ range .blurbs }} +
+ +

{{ .text }}

+
+ {{ end }}
- - {{ if .buttonText }} -
- {{.buttonText}} -
- {{ end }} diff --git a/site/layouts/partials/blockquote.html b/site/layouts/partials/blockquote.html index 85920f0..1c851e1 100644 --- a/site/layouts/partials/blockquote.html +++ b/site/layouts/partials/blockquote.html @@ -1,6 +1,6 @@
-

{{.quote}}

- {{.author}} +

“{{ .quote }}”

+ {{ .author }}
diff --git a/site/layouts/partials/head.html b/site/layouts/partials/head.html index bd2f1da..9c72ea1 100644 --- a/site/layouts/partials/head.html +++ b/site/layouts/partials/head.html @@ -3,7 +3,7 @@ - {{.Title}} | Kaldi + {{ .Title }} | Kaldi diff --git a/site/layouts/partials/image-grid.html b/site/layouts/partials/image-grid.html index 726be38..5ead5f1 100644 --- a/site/layouts/partials/image-grid.html +++ b/site/layouts/partials/image-grid.html @@ -2,15 +2,15 @@
- A close-up of a paper filter filled with ground coffee + {{ .image1.alt }}
- A green cup of a coffee on a wooden table + {{ .image2.alt }}
- Coffee beans + {{ .image3.alt }}
diff --git a/site/layouts/partials/table-column.html b/site/layouts/partials/table-column.html index 5713f65..7d2f49e 100644 --- a/site/layouts/partials/table-column.html +++ b/site/layouts/partials/table-column.html @@ -13,15 +13,12 @@ diff --git a/site/layouts/partials/table.html b/site/layouts/partials/table.html index 95f639b..2b521a9 100644 --- a/site/layouts/partials/table.html +++ b/site/layouts/partials/table.html @@ -3,21 +3,12 @@

{{.heading}}

-

{{.text}}

+

{{.description}}

- -
{{ partial "table-column" (dict "plan" "Small" "price" "50" "description" "Perfect for the drinker who likes to enjoy 1-2 cups per day." "item1" "3 lbs of coffee per month" "item2" "Green or roasted beans" "item3" "One or two varieties of beans") }} -
- -
- {{ partial "table-column" (dict "plan" "Big" "price" "80" "description" "Great for avid drinkers, java-nsoving couples and bigger crowds" "item1" "6 lbs of coffee per month" "item2" "Green or roasted beans" "item3" "Up to 4 different varieties of beans") }} -
- -
- {{ partial "table-column" (dict "plan" "Custom" "price" "?" "description" "Want a few tiny batches from different varieties? Try our custom plan" "item1" "Whatever you need" "item2" "Green or roasted beans" "item3" "Unlimited varieties") }} -
- + {{ range .plans }} +
{{ partial "table-column" . }}
+ {{ end }}
-- cgit v1.3