From 1158bff4626416637ba72a1dcfadbb40db0d718b Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 13 Jan 2022 22:44:43 +0100 Subject: [PATCH] Hide logo when config.logo = false --- madblog/config.py | 2 +- madblog/templates/common-head.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/madblog/config.py b/madblog/config.py index 83ef4a0..755e654 100644 --- a/madblog/config.py +++ b/madblog/config.py @@ -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'] diff --git a/madblog/templates/common-head.html b/madblog/templates/common-head.html index 70ff268..56b3394 100644 --- a/madblog/templates/common-head.html +++ b/madblog/templates/common-head.html @@ -20,7 +20,7 @@
{% if config.logo %} - + {% endif %}