summaryrefslogtreecommitdiff
path: root/templates/post.rs.html
blob: 2823b3b47ca0fdd3aba6780da806ec9c2221f35f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@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)

<article class="h-entry">
    <h1 class="p-name">@post.front_matter.title.clone()</h1>
    <span>
        <small>Posted <time class="dt-published"
                                   datetime="@post.clone().date.format("%F
                                   %T")">@post.clone().date.format("%d %B %Y") by
                                   <div class="p-author
                                               h-card">@post.clone().author</div></small>
    </span>


    @body
</article>
@:footer_html()