site/templates/series_posts.rs.html

19 lines
328 B
HTML
Raw Normal View History

2020-07-13 02:58:00 +00:00
@use crate::post::Post;
@use super::{header_html, footer_html};
@(name: String, posts: &Vec<Post>)
@:header_html(Some(&name), None)
<h1>Series: @name</h1>
<p>
<ul>
@for post in posts {
<li>@post.date - <a href="/@post.link">@post.front_matter.title</a></li>
}
</ul>
</p>
@:footer_html()