diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-07-10 22:25:49 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-07-10 22:25:49 +0800 |
commit | 5d8928659ec3a31a4d19a3fe0d1d37bd448fbd73 (patch) | |
tree | 3056ebee2c91da4e81feba6e52716e10305ca12b /_includes/views/header.html | |
parent | b0175520ac68e7dae13329a4b59a4e3db8e9d509 (diff) |
chore: default transparent header and trim text
Diffstat (limited to '_includes/views/header.html')
-rw-r--r-- | _includes/views/header.html | 6 |
1 files changed, 2 insertions, 4 deletions
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 -%} - <a class="page-link" href="{{ my_page.url | relative_url }}"> - {{ my_page.title | upcase | escape }} - </a> + <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | upcase | escape }}</a> {%- endif -%} {%- endfor -%} |