aboutsummaryrefslogtreecommitdiff
path: root/templates/galleryindex.rs.html
blob: 1279de9f83c70032e1ab2df508cf1dede39b18a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@use crate::post::Post;
@use super::{header_html, footer_html};

@(posts: Vec<Post>)

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

<h1>Gallery</h1>

<p>Here are links to a lot of the art I have done in the last few years.</p>

<div class="grid">
    @for post in posts {
    <div class="card cell -4of12 blogpost-card">
        <header class="card-header">@post.front_matter.title</header>
        <div class="card-content">
            <center><p>Posted on @post.date.format("%Y-%m-%d")<br /><a href="/@post.link"><img src="@post.front_matter.thumb.as_ref().unwrap()" /></a></p></center>
        </div>
    </div>
    }
</div>

@:footer_html()