From 0376f2cb37c153776e3b61b89ea9b65d1877f746 Mon Sep 17 00:00:00 2001 From: lucperkins Date: Sat, 4 Aug 2018 13:28:05 +0200 Subject: [PATCH] Fix rendering issues due to capitalization in param names --- exampleSite/config.yaml | 6 +++--- layouts/partials/hero-body.html | 4 ++-- layouts/partials/hero-footer.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 50e2313..43bd0e6 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -9,12 +9,12 @@ params: title: Manage. Deploy. # Hero subtitle (optional) subtitle: Lorem ipsum sit dolor amet is dummy text used by the typography industry - buttonText: Get started - buttonLink: "#" + buttontext: Get started + buttonlink: "#" # Hero image (from /images/___) image: illustrations/worker.svg # Footer logos (from /images/logos/clients/___.svg) - clientLogos: + clientlogos: - systek - tribe - kromo diff --git a/layouts/partials/hero-body.html b/layouts/partials/hero-body.html index 18e3486..b863dbd 100644 --- a/layouts/partials/hero-body.html +++ b/layouts/partials/hero-body.html @@ -1,8 +1,8 @@ {{- $hero := .Site.Params.hero }} {{- $title := index $hero "title" }} {{- $subtitle := index $hero "subtitle" }} -{{- $buttonText := index $hero "buttonText" }} -{{- $buttonLink := index $hero "buttonLink" }} +{{- $buttonText := index $hero "buttontext" }} +{{- $buttonLink := index $hero "buttonlink" }} {{- $image := index $hero "image" }}
diff --git a/layouts/partials/hero-footer.html b/layouts/partials/hero-footer.html index c43dc57..4f4fefd 100644 --- a/layouts/partials/hero-footer.html +++ b/layouts/partials/hero-footer.html @@ -1,5 +1,5 @@ {{- $hero := .Site.Params.hero }} -{{- $clientLogos := index $hero "clientLogos" }} +{{- $clientLogos := index $hero "clientlogos" }}