diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-09-29 12:55:26 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-09-29 12:55:26 +0800 |
commit | 1909d096005698509ca10d3cc60f576128b39cdb (patch) | |
tree | 956faed33ccb92e4df2c86f54afc6f356867c3b6 /_includes | |
parent | a7d8a2977d6110d1f8778b8ae02067982a5e43a7 (diff) |
fix: header_transparent option not working
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/views/header.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_includes/views/header.html b/_includes/views/header.html index 87c7862..3bd063c 100644 --- a/_includes/views/header.html +++ b/_includes/views/header.html @@ -1,13 +1,13 @@ {%- include functions.html func='log' level='debug' msg='Get banner value' -%} -{% assign name = 'banner' %} +{%- assign name = 'banner' -%} {%- include functions.html func='get_value' -%} {% assign banner = return %} {%- include functions.html func='log' level='debug' msg='Get header_transparent value' -%} -{% assign name = 'header_transparent' %} -{%- include functions.html func='get_value' -%} -{% assign header_transparent = return | default: true %} +{%- assign name = 'header_transparent' -%} +{%- include functions.html func='get_value' default=true -%} +{%- assign header_transparent = return -%} {%- if banner and header_transparent -%} {%- assign header_transparent_class = "site-header-transparent" -%} |