feat: add rss_url to HtmlPageContext, use it in nav

This commit is contained in:
2026-05-04 20:55:31 +02:00
parent 0433cd4d9b
commit cbd2ac5b3e
3 changed files with 5 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ pub mod html {
user_email,
user_id: uuid,
register_enabled: state.app_ctx.config.allow_registration,
rss_url: "/feed.rss".to_string(),
}
}
@@ -67,6 +68,7 @@ pub mod html {
user_email: None,
user_id: None,
register_enabled: state.app_ctx.config.allow_registration,
rss_url: "/feed.rss".to_string(),
};
let html = state
.html_renderer
@@ -119,6 +121,7 @@ pub mod html {
user_email: None,
user_id: None,
register_enabled: true,
rss_url: "/feed.rss".to_string(),
};
let html = state
.html_renderer