aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2025-08-22 19:42:00 -0500
committerChristian Cleberg <[email protected]>2025-08-22 19:42:00 -0500
commit2aceaf0d49d4655b2802a863a04b1c01f1a0405b (patch)
tree98e0c8024f750f74ac4c883db42e87aef8303aa9 /build.py
parentd308865805f86f3da6fb101002075e8198d8cd6c (diff)
downloadcleberg.net-2aceaf0d49d4655b2802a863a04b1c01f1a0405b.tar.gz
cleberg.net-2aceaf0d49d4655b2802a863a04b1c01f1a0405b.tar.bz2
cleberg.net-2aceaf0d49d4655b2802a863a04b1c01f1a0405b.zip
remove unecessary print statement and fix deprecated UTC function call
Diffstat (limited to 'build.py')
-rw-r--r--build.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/build.py b/build.py
index 00019e6..d765019 100644
--- a/build.py
+++ b/build.py
@@ -291,7 +291,7 @@ def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"):
loc = f"{base_url}{url_path}"
# Last modified time
- lastmod = datetime.utcfromtimestamp(
+ lastmod = datetime.fromtimestamp(
os.path.getmtime(full_path)
).strftime("%Y-%m-%d")
@@ -306,7 +306,6 @@ def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"):
</urlset>
"""
# Write to .build/sitemap.xml
- print(build_dir)
sitemap_path = os.path.join(build_dir, "sitemap.xml")
with open(sitemap_path, "w", encoding="utf-8") as f:
f.write(sitemap_xml)