From 8bb920e96a511b35192a119e8a2917c40d8b9f96 Mon Sep 17 00:00:00 2001 From: Awstin Date: Tue, 18 Feb 2025 20:00:41 -0500 Subject: [PATCH] Adding basic RSS feed --- assets/feed.xml | 26 ++++++++++++++++++++++++++ src/html/root.rs | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 assets/feed.xml diff --git a/assets/feed.xml b/assets/feed.xml new file mode 100644 index 0000000..e77457d --- /dev/null +++ b/assets/feed.xml @@ -0,0 +1,26 @@ + + + + + Awstin Chubb + https://achubb.com + My personal site + + Monk & Robot + https://achubb.com/books/monk&robot + + + Conundrum + https://achubb.com/posts/conundrum + + + Let America Go + https://achubb.com/posts/lag + + + Canadian Tariffs + https://achubb.com/posts/ct + + + + diff --git a/src/html/root.rs b/src/html/root.rs index 6be9b55..a3bedc8 100644 --- a/src/html/root.rs +++ b/src/html/root.rs @@ -66,6 +66,10 @@ pub fn get_router(pool: PgPool) -> Router { "/robots.txt", get(|| async { Redirect::permanent("/assets/robots.txt") }), ) + .route( + "/feed.xml", + get(|| async { Redirect::permanent("/assets/feed.xml") }), + ) .layer(axum::middleware::from_fn(move |req, next| { auth(req, next, middleware_database.clone()) }))