summaryrefslogtreecommitdiff
path: root/_includes/functions
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2021-06-26 12:05:19 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2021-06-26 12:05:19 +0800
commit11edca189059cf5bbe78443afbb191e740c6fa60 (patch)
tree680e04a27e0905f05ef1bb48a477d590c0c58672 /_includes/functions
parent29f69dcc2aacc5a100e5d15d1decf0a8d1f15cac (diff)
feat: support video banner
Diffstat (limited to '_includes/functions')
-rw-r--r--_includes/functions/get_banner.html24
1 files changed, 24 insertions, 0 deletions
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 %}
+