aboutsummaryrefslogtreecommitdiff
path: root/blog_experiment/blog/html.py
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2023-10-08 16:46:02 +0200
committeralex <alex@pdp7.net>2023-10-08 16:46:02 +0200
commit9fe5d5fcac2ff85faffe17bdc2ee882818914477 (patch)
tree3ff2ba5337c1cf8c336270c33f7f8e6f2ea581ca /blog_experiment/blog/html.py
parent6a390b55041c60387b8afc5e5f6a69a5e494939f (diff)
Fix base URL, add RSS discovery
Diffstat (limited to 'blog_experiment/blog/html.py')
-rw-r--r--blog_experiment/blog/html.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/blog_experiment/blog/html.py b/blog_experiment/blog/html.py
index 3478eb2f..0568060d 100644
--- a/blog_experiment/blog/html.py
+++ b/blog_experiment/blog/html.py
@@ -10,7 +10,10 @@ def html_template(*content, page_title=None):
title += f" - {page_title}"
return bs4.BeautifulSoup(h.render(
h.HTML(
- h.HEAD(h.TITLE(title)),
+ h.HEAD(
+ h.TITLE(title),
+ h.LINK(rel="alternate", type="application/rss+xml", title=meta.TITLE, href=f"{meta.BASE_URL}/feed/"),
+ ),
h.BODY(
h.H1(meta.TITLE),
h.H2(meta.SUBTITLE),