Commit 2aceaf0d49

2aceaf0d49d4655b2802a863a04b1c01f1a0405b

parent: d308865805

Unsigned

cmc <hello@cleberg.net> · 2025-08-23 00:42 UTC

remove unecessary print statement and fix deprecated UTC function call

Layout: unified · split

build.py +1 −2
@@ -291,7 +291,7 @@ def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"):
291291 loc = f"{base_url}{url_path}"
292292
293293 # Last modified time
294 lastmod = datetime.utcfromtimestamp(
294 lastmod = datetime.fromtimestamp(
295295 os.path.getmtime(full_path)
296296 ).strftime("%Y-%m-%d")
297297
@@ -306,7 +306,6 @@ def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"):
306306</urlset>
307307"""
308308 # Write to .build/sitemap.xml
309 print(build_dir)
310309 sitemap_path = os.path.join(build_dir, "sitemap.xml")
311310 with open(sitemap_path, "w", encoding="utf-8") as f:
312311 f.write(sitemap_xml)