From 1909d096005698509ca10d3cc60f576128b39cdb Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Tue, 29 Sep 2020 12:55:26 +0800 Subject: fix: header_transparent option not working --- _includes/views/header.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '_includes/views/header.html') 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" -%} -- cgit v1.2.3