cmc/cleberg.net
My personal web garden & blog.
clone: git clone https://gitbay.org/cmc/cleberg.net.git
2aceaf0d49d4655b2802a863a04b1c01f1a0405b
unsigned
author: Christian Cleberg <hello@cleberg.net> · 2025-08-23T00:42:00Z
build.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) @@ -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)