feat: added debug
This commit is contained in:
parent
fab58de71d
commit
8e64e48097
@ -3,20 +3,35 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Hello Bulma!</title>
|
<title>STSG</title>
|
||||||
<link
|
<link rel="stylesheet" href="static/bulma.min.css" />
|
||||||
rel="stylesheet"
|
|
||||||
href="https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css"
|
|
||||||
/>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<!-- Header (Navbar) -->
|
||||||
|
<nav
|
||||||
|
class="navbar is-primary"
|
||||||
|
role="navigation"
|
||||||
|
aria-label="main navigation"
|
||||||
|
>
|
||||||
|
<div class="navbar-brand">
|
||||||
|
<a class="navbar-item" href="#">
|
||||||
|
<strong>Static Translated Site Generator</strong>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Main Content -->
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="title">Hello World</h1>
|
|
||||||
<p class="subtitle">My first website with <strong>Bulma</strong>!</p>
|
|
||||||
|
|
||||||
<content />
|
<content />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="content has-text-centered">
|
||||||
|
<p><strong>STSG</strong> by Hazel. © 2025</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -72,9 +72,13 @@ def build():
|
|||||||
copy_static()
|
copy_static()
|
||||||
|
|
||||||
context = Context()
|
context = Context()
|
||||||
print(context.get_text({
|
|
||||||
|
# debug
|
||||||
|
t = context.get_text({
|
||||||
"content": """
|
"content": """
|
||||||
<h1 class="title">Hello World</h1>
|
<h1 class="title">Hello World</h1>
|
||||||
<p class="subtitle">My first website with <strong>Bulma</strong>!</p>
|
<p class="subtitle">My first website with <strong>Bulma</strong>!</p>
|
||||||
"""
|
"""
|
||||||
}))
|
})
|
||||||
|
with Path(DIST_DIRECTORY, "index.html").open("w") as f:
|
||||||
|
f.write(t)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user