From 8e64e48097d67c21a4cbeef5afb2e467511cad41 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Thu, 10 Apr 2025 14:51:17 +0200 Subject: [PATCH] feat: added debug --- src/index.html | 31 +++++++++++++++++++++++-------- stsg/build.py | 8 ++++++-- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/src/index.html b/src/index.html index 2f52f77..aecb12f 100644 --- a/src/index.html +++ b/src/index.html @@ -3,20 +3,35 @@ - Hello Bulma! - + STSG + + + + +
-

Hello World

-

My first website with Bulma!

-
+ + + diff --git a/stsg/build.py b/stsg/build.py index 8a947e3..83809e2 100644 --- a/stsg/build.py +++ b/stsg/build.py @@ -72,9 +72,13 @@ def build(): copy_static() context = Context() - print(context.get_text({ + + # debug + t = context.get_text({ "content": """

Hello World

My first website with Bulma!

""" - })) + }) + with Path(DIST_DIRECTORY, "index.html").open("w") as f: + f.write(t)