From 19e0bccad4790201e73a52ffee69dcb4fdd32d61 Mon Sep 17 00:00:00 2001
From: "Amruta.org" <38246728+amrutadotorg@users.noreply.github.com>
Date: Sat, 8 Jun 2024 07:47:51 +0200
Subject: [PATCH 1/2] Adding to hero.handlebars a poster as top-level parameter
---
sqlpage/templates/hero.handlebars | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/sqlpage/templates/hero.handlebars b/sqlpage/templates/hero.handlebars
index c62b92e7..c6d182c0 100644
--- a/sqlpage/templates/hero.handlebars
+++ b/sqlpage/templates/hero.handlebars
@@ -4,7 +4,7 @@
{{~description~}}
{{~#if description_md~}}
- {{{markdown description_md}}}
+ {{{markdown description_md}}}
{{~/if~}}
{{#if link}}
@@ -15,7 +15,12 @@
{{#if icon}}
- {{~icon_img icon 30~}}
+ {{~icon_img icon 30~}}
{{/if}}
@@ -39,11 +44,11 @@
{{#if link}}
{{/if}}
-
+
{{~description~}}
{{~#if description_md~}}
- {{{markdown description_md}}}
+ {{{markdown description_md}}}
{{~/if~}}
From 15539d972ae0d6715e86eb4b74d2e07104672141 Mon Sep 17 00:00:00 2001
From: "Amruta.org" <38246728+amrutadotorg@users.noreply.github.com>
Date: Sat, 8 Jun 2024 08:13:06 +0200
Subject: [PATCH 2/2] Update 02_hero_component.sql adding poster
---
.../official-site/sqlpage/migrations/02_hero_component.sql | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/examples/official-site/sqlpage/migrations/02_hero_component.sql b/examples/official-site/sqlpage/migrations/02_hero_component.sql
index 5ef2b59b..8066f873 100644
--- a/examples/official-site/sqlpage/migrations/02_hero_component.sql
+++ b/examples/official-site/sqlpage/migrations/02_hero_component.sql
@@ -66,6 +66,13 @@ FROM (
TRUE,
TRUE
),
+ (
+ 'poster',
+ 'URL of the image to be displayed before the video starts.',
+ 'URL',
+ TRUE,
+ TRUE
+ ),
-- item level
(
'title',