diff --git a/blog_server/src/service/index.rs b/blog_server/src/service/index.rs index 90047b3..b254ba8 100644 --- a/blog_server/src/service/index.rs +++ b/blog_server/src/service/index.rs @@ -43,7 +43,7 @@ pub async fn handle(Extension(posts): Extension) -> HtmlRe ul { @for post in posts.read().await.iter_by_created().rev() { li { - a href={"/posts/" (post.id_str())} { (post.title()) } + a href={"/articles/" (post.id_str())} { (post.title()) } } } } diff --git a/blog_server/src/service/posts.rs b/blog_server/src/service/posts.rs index d7bef58..2bf339c 100644 --- a/blog_server/src/service/posts.rs +++ b/blog_server/src/service/posts.rs @@ -17,7 +17,7 @@ pub async fn handle( .with_crawler_permissive() .with_title_owned(post.title().to_owned()) .with_head(html! { - link href="/static/style/code.css" rel="stylesheet"; + link href="/static/styles/code.css" rel="stylesheet"; }) .with_body(html! { h1 { (post.title()) } diff --git a/blog_server/src/service/site.rs b/blog_server/src/service/site.rs index 3d29933..b69ab2a 100644 --- a/blog_server/src/service/site.rs +++ b/blog_server/src/service/site.rs @@ -27,7 +27,7 @@ pub fn service( { Router::new() .route("/", get(index::handle)) - .route("/posts/:post_id", get(posts::handle)) + .route("/articles/:post_id", get(posts::handle)) .nest("/static", static_content::service(static_dir)) .fallback(handle_fallback.into_service()) .layer(ConcurrencyLimitLayer::new(concurrency_limit)) diff --git a/blog_server/src/template.rs b/blog_server/src/template.rs index e0cd44f..eea7269 100644 --- a/blog_server/src/template.rs +++ b/blog_server/src/template.rs @@ -9,11 +9,11 @@ pub fn main_page(content: Markup) -> Markup { } #right_nav_box { ul { - li { a href="/" { "Articles" } } - li { a href="/" { "Atom" } } - li { a href="/" { "RSS" } } - li { a href="/" { "GitHub" } } - li { a href="/" { "Contact" } } + li { a href="/articles" { "Articles" } } + li { a href="/atom.xml" { "Atom" } } + li { a href="/rss.xml" { "RSS" } } + li { a href="https://github.com/pantonshire" { "GitHub" } } + li { a href="/contact" { "Contact" } } } } }