diff --git a/data/_theme.scss b/data/_theme.scss deleted file mode 100644 index 9fc2396..0000000 --- a/data/_theme.scss +++ /dev/null @@ -1 +0,0 @@ -// override vars for theming here diff --git a/scripts/config_wizard.py b/scripts/config_wizard.py index 912d726..9fcd3ef 100644 --- a/scripts/config_wizard.py +++ b/scripts/config_wizard.py @@ -25,6 +25,10 @@ def _(event): def main() -> None: + theme_file = Path("data/_theme.scss") + if not theme_file.exists(): + theme_file.write_text("// override vars for theming here") + print("Welcome to microblog.pub setup wizard\n") print("Generating key...") if _KEY_PATH.exists(): diff --git a/tasks.py b/tasks.py index 2dd57bf..b084885 100644 --- a/tasks.py +++ b/tasks.py @@ -46,16 +46,16 @@ def compile_scss(ctx, watch=False): # type: (Context, bool) -> None from app.utils.favicon import build_favicon + theme_file = Path("data/_theme.scss") + if not theme_file.exists(): + theme_file.write_text("// override vars for theming here") + favicon_file = Path("data/favicon.ico") if not favicon_file.exists(): build_favicon() else: shutil.copy2(favicon_file, "app/static/favicon.ico") - theme_file = Path("data/_theme.scss") - if not theme_file.exists(): - theme_file.write_text("// override vars for theming here") - if watch: run("boussole watch", echo=True) else: