summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/bloglist.rs.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/bloglist.rs.html b/templates/bloglist.rs.html
index 505f9a7..4621f3f 100644
--- a/templates/bloglist.rs.html
+++ b/templates/bloglist.rs.html
@@ -1,16 +1,16 @@
@use crate::blog::post::Post;
@use super::{header_html, footer_html};
-@(posts: Vec<Post>)
+@(posts: Vec<Post>, kind: String)
-@:header_html(Some("Posts"), None)
+@:header_html(Some(&kind), None)
-<h1>Posts</h1>
+<h1>@kind.clone()</h1>
<p>
<ul class="post-list">
@for post in posts {
- <li class="post-item">@post.date.format("%B %d %Y") -
+ <li class="post-item">@post.date.format("%d %B %Y") -
<a href="/@post.link">@post.front_matter.title</a></li>
}
</ul>