diff options
Diffstat (limited to '_includes/functions/get_banner.html')
-rw-r--r-- | _includes/functions/get_banner.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/_includes/functions/get_banner.html b/_includes/functions/get_banner.html new file mode 100644 index 0000000..bb19ac2 --- /dev/null +++ b/_includes/functions/get_banner.html @@ -0,0 +1,28 @@ +{%- include functions.html func='log' level='debug' msg='Get banner value' -%} +{% assign name = 'banner' %} +{%- include functions.html func='get_value' -%} +{% assign banner = return %} + +{%- if banner.first -%} + {%- include functions.html func='log' level='debug' msg='Get banner_image value' -%} + {% assign name = 'banner.image' %} + {%- include functions.html func='get_value' -%} + {% assign banner_image = return | relative_url %} +{%- else -%} + {% assign banner_image = banner | relative_url %} +{%- endif -%} + +{%- include functions.html func='log' level='debug' msg='Get banner_background value' -%} +{% assign name = 'banner.background' %} +{%- include functions.html func='get_value' -%} +{% assign banner_background = return %} + +{%- include functions.html func='log' level='debug' msg='Get banner_opacity value' -%} +{% assign name = 'banner.opacity' %} +{%- include functions.html func='get_value' -%} +{% assign banner_opacity = return %} + +{%- include functions.html func='log' level='debug' msg='Get banner_height value' -%} +{% assign name = 'banner.height' %} +{%- include functions.html func='get_value' -%} +{% assign banner_height = return %} |