aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-08-03 15:05:53 -0500
committerChristian Cleberg <[email protected]>2026-08-03 15:05:53 -0500
commit681a290e9ec232296cafee94ac76aa269a11b5bd (patch)
treec5fcfd61af3c6ad891b5e92a2b862c190199a67a /build.py
parent217c25c8f247de3dedc5249bc5f6de17a8a8ef4d (diff)
downloadcleberg.net-681a290e9ec232296cafee94ac76aa269a11b5bd.tar.gz
cleberg.net-681a290e9ec232296cafee94ac76aa269a11b5bd.tar.bz2
cleberg.net-681a290e9ec232296cafee94ac76aa269a11b5bd.zip
serve stylesheet from root-relative path
Emit /styles.min.css instead of the prod-absolute https://cleberg.net/styles.min.css so the onion renders standalone without fetching its stylesheet off-onion. Drop the now-dead build.py replace that rewrote the same string.
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/build.py b/build.py
index cfdcec5..0cb8006 100755
--- a/build.py
+++ b/build.py
@@ -142,10 +142,6 @@ def render_base_template(main_html, subtitle="", title=None):
'{% if site_keywords is defined %}<meta name="keywords" content="{{ site_keywords }}">{% endif %}',
"",
)
- rendered = rendered.replace(
- '{{ url_for("static", file="styles.min.css") }}',
- "/styles.min.css",
- )
rendered = rendered.replace("{% block meta %}{% endblock %}", "")
rendered = rendered.replace("{% block head %}", "")
rendered = rendered.replace("{% endblock %}", "", 1)