Links from page header

This commit is contained in:
Pantonshire committed 2022-05-18 15:34:58 +01:00
1 parent 79a248d641
commit 9e86897dcd
4 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ pub async fn handle(Extension(posts): Extension<ConcurrentPostsStore>) -> 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()) }
}
}
}
+1 -1
View File
@@ -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()) }
+1 -1
View File
@@ -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))