summaryrefslogblamecommitdiff
path: root/templates/bloglist.rs.html
blob: 4621f3f48903942305de6ed71b8eeb25a1f5bac9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                       
                                 
 
                                
 
                      

   
                      
                            
                                                                     





                                                                               
@use crate::blog::post::Post;
@use super::{header_html, footer_html};

@(posts: Vec<Post>, kind: String)

@:header_html(Some(&kind), None)

<h1>@kind.clone()</h1>

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

@:footer_html()