From 11edca189059cf5bbe78443afbb191e740c6fa60 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Sat, 26 Jun 2021 12:05:19 +0800 Subject: feat: support video banner --- _includes/functions/get_banner.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to '_includes/functions') diff --git a/_includes/functions/get_banner.html b/_includes/functions/get_banner.html index 6d07f10..502d7fc 100644 --- a/_includes/functions/get_banner.html +++ b/_includes/functions/get_banner.html @@ -42,3 +42,27 @@ {%- include functions.html func='get_value' -%} {% assign banner_subheading_style = return %} +{%- include functions.html func='log' level='debug' msg='Get banner_video value' -%} +{% assign name = 'banner.video' %} +{%- include functions.html func='get_value' -%} +{% assign banner_video = return %} + +{%- include functions.html func='log' level='debug' msg='Get banner_loop value' -%} +{% assign name = 'banner.loop' %} +{%- include functions.html func='get_value' default=true -%} +{% assign banner_loop = return %} + +{%- include functions.html func='log' level='debug' msg='Get banner_volume value' -%} +{% assign name = 'banner.volume' %} +{%- include functions.html func='get_value' default=0 -%} +{% assign banner_volume = return %} + +{%- include functions.html func='log' level='debug' msg='Get banner_start_at value' -%} +{% assign name = 'banner.start_at' %} +{%- include functions.html func='get_value' default=0 -%} +{% assign banner_start_at = return %} + +{% if banner_image or banner_video %} + {% assign has_banner = true %} +{% endif %} + -- cgit v1.2.3