diff options
| author | alex <alex@pdp7.net> | 2023-10-08 21:04:22 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-10-08 21:04:22 +0200 |
| commit | 484e17bf4a272900ca20365ff1bc8feff5e39df0 (patch) | |
| tree | ca5b6694e993087b49688df498c8ec7484cd9750 /blog_experiment/blog/html.py | |
| parent | 7e8987018f685ac8816d5e320d86d4887ea3931c (diff) | |
Configurable base URL
Diffstat (limited to 'blog_experiment/blog/html.py')
| -rw-r--r-- | blog_experiment/blog/html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/blog_experiment/blog/html.py b/blog_experiment/blog/html.py index c7112ea8..5263ca9b 100644 --- a/blog_experiment/blog/html.py +++ b/blog_experiment/blog/html.py @@ -6,7 +6,7 @@ from blog import meta, pretty def html_template(*content, page_title=None): - title = [h.A(meta.TITLE, href=meta.BASE_URL)] + title = [h.A(meta.TITLE, href=f"{meta.SCHEMA}://{meta.HOST}")] if page_title: title += f" - {page_title}" @@ -20,7 +20,7 @@ def html_template(*content, page_title=None): h.HTML( h.HEAD( h.TITLE(meta.TITLE + (f" - {page_title}" if page_title else "")), - h.LINK(rel="alternate", type="application/rss+xml", title=meta.TITLE, href=f"{meta.BASE_URL}/feed/"), + h.LINK(rel="alternate", type="application/rss+xml", title=meta.TITLE, href=f"{meta.SCHEMA}://{meta.HOST}/feed/"), ), h.BODY( h.H1(title), |
