summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-04-06 12:22:54 -0400
committerCara Salter <cara@devcara.com>2022-04-06 12:22:54 -0400
commitaef8039358b3d9f0cbd47dfa04ab3d24a2c05e5c (patch)
tree820961116cb84d98514877bc049003afc1e36e0c /templates
parentc9b5f2c8bd5aa6ba00ae7d3a8935e0add429b110 (diff)
downloadsite-aef8039358b3d9f0cbd47dfa04ab3d24a2c05e5c.tar.gz
site-aef8039358b3d9f0cbd47dfa04ab3d24a2c05e5c.zip
flakes + projects
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>