Hide logo when config.logo = false

This commit is contained in:
Fabio Manganiello 2022-01-13 22:44:43 +01:00
parent 6d9712b8d9
commit 1158bff462
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ def init_config(content_dir='.', config_file='config.yaml'):
config.link = cfg['link']
if cfg.get('home_link'):
config.home_link = cfg['home_link']
if cfg.get('logo'):
if cfg.get('logo') is not None:
config.logo = cfg['logo']
if cfg.get('language'):
config.language = cfg['language']

View file

@ -20,7 +20,7 @@
<header>
<div class="left">
{% if config.logo %}
<a href="{{ config.home_link }}" title="Home">
<a href="{{ config.home_link or config.link }}" title="Home">
<img src="{{ config.logo }}" class="icon" alt="">
</a>
{% endif %}