add homepage hero to cms

Tom Rutgers committed Aug 17, 2018
commit 627ec34e07dd6f926e6ec235fa41f17ad5e23fb3
Showing 2 changed files with 3 additions and 3 deletions
data/pages/home.yml +1 -1
@@ @@ -1,3 +1,3 @@
hero:
title: Great coffee with a conscience
- image: img/uploads/homepage-hero.jpg
+ image: /images/uploads/homepage-hero.jpg
source/partials/homepage/_hero.slim +2 -2
@@ @@ -1,4 +1,4 @@
- section.hero style=background_image(image_path('uploads/homepage-hero.jpg'))
+ section.hero style=background_image(image_path(data.pages.home.hero.image))
.caption
.row
- h1 Great coffee with a conscience
+ h1 = data.pages.home.hero.title