summaryrefslogtreecommitdiff
path: root/templates/bloglist.rs.html
blob: 505f9a76d1afd6e91635a479298fb3b65af65fd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@use crate::blog::post::Post;
@use super::{header_html, footer_html};

@(posts: Vec<Post>)

@:header_html(Some("Posts"), None)

<h1>Posts</h1>

<p>
<ul class="post-list">
	@for post in posts {
		<li class="post-item">@post.date.format("%B %d %Y") -
			<a href="/@post.link">@post.front_matter.title</a></li>
	}
</ul>
</p>

@:footer_html()