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

@(post: Post, body: impl ToHtml)

@:header_html(Some(&post.front_matter.title.clone()), None)

<h1>@post.front_matter.title.clone()</h1>
<span>
	<small>Posted @post.clone().date.format("%B %d %Y") by
		@post.clone().author</small>
</span>

@body

@:footer_html()