Fix rendering issues due to capitalization in param names

This commit is contained in:
lucperkins
2018-08-04 13:28:05 +02:00
parent a7d8f69fb8
commit 0376f2cb37
3 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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" }}
<div class="hero-body">
<div class="container">

View File

@@ -1,5 +1,5 @@
{{- $hero := .Site.Params.hero }}
{{- $clientLogos := index $hero "clientLogos" }}
{{- $clientLogos := index $hero "clientlogos" }}
<div class="hero-foot mb-20">
<div class="container">
<div class="tabs is-centered">