diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2021-06-17 20:39:11 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2021-06-17 20:39:11 +0800 |
commit | cae6e2e54973d9ccbc9de6954d2dbf0888c1842f (patch) | |
tree | 60dc04f2c75d0291807f1197eadc8dabb3157c7e /_includes/views/header.html | |
parent | 9b06eb1ba9229e1885f6a847ae4a610ea56fcee1 (diff) |
feat: support advanced banner configuration
Support to configurate the banner opacity and height.
Diffstat (limited to '_includes/views/header.html')
-rw-r--r-- | _includes/views/header.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/_includes/views/header.html b/_includes/views/header.html index 3bd063c..d8b43f4 100644 --- a/_includes/views/header.html +++ b/_includes/views/header.html @@ -1,15 +1,12 @@ -{%- include functions.html func='log' level='debug' msg='Get banner value' -%} -{%- assign name = 'banner' -%} -{%- include functions.html func='get_value' -%} -{% assign banner = return %} +{%- include functions.html func='get_banner' -%} {%- include functions.html func='log' level='debug' msg='Get header_transparent value' -%} {%- assign name = 'header_transparent' -%} {%- include functions.html func='get_value' default=true -%} {%- assign header_transparent = return -%} -{%- if banner and header_transparent -%} +{%- if banner_image and header_transparent -%} {%- assign header_transparent_class = "site-header-transparent" -%} {%- endif -%} |