From 5d8928659ec3a31a4d19a3fe0d1d37bd448fbd73 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Fri, 10 Jul 2020 22:25:49 +0800 Subject: chore: default transparent header and trim text --- _includes/views/header.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to '_includes') diff --git a/_includes/views/header.html b/_includes/views/header.html index f23401f..87c7862 100644 --- a/_includes/views/header.html +++ b/_includes/views/header.html @@ -7,7 +7,7 @@ {%- 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 %} +{% assign header_transparent = return | default: true %} {%- if banner and header_transparent -%} {%- assign header_transparent_class = "site-header-transparent" -%} @@ -39,9 +39,7 @@ {%- for path in page_paths -%} {%- assign my_page = site.pages | where: "path", path | first -%} {%- if my_page.title -%} - - {{ my_page.title | upcase | escape }} - + {{ my_page.title | upcase | escape }} {%- endif -%} {%- endfor -%} -- cgit v1.2.3