mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-06-05 21:59:23 +02:00
Improve/tweak templates
This commit is contained in:
6
tasks.py
6
tasks.py
@ -41,9 +41,9 @@ def lint(ctx):
|
||||
@task
|
||||
def compile_scss(ctx, watch=False):
|
||||
# type: (Context, bool) -> None
|
||||
vars_file = Path("app/scss/vars.scss")
|
||||
if not vars_file.exists():
|
||||
vars_file.write_text("")
|
||||
theme_file = Path("data/_theme.scss")
|
||||
if not theme_file.exists():
|
||||
theme_file.write_text("// override vars for theming here")
|
||||
|
||||
if watch:
|
||||
run("poetry run boussole watch", echo=True)
|
||||
|
Reference in New Issue
Block a user