aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-06-08 17:41:18 -0400
committerXe Iaso <me@christine.website>2022-06-08 17:41:18 -0400
commit792be1eb55369766e0e42d82269a8bc50586693e (patch)
tree55788f4d1ade6c59f179993361514e8d47be61cc
parentaa10dce9ee5e98324f2e57e7b0ce4ddb8d5928c2 (diff)
downloadxesite-792be1eb55369766e0e42d82269a8bc50586693e.tar.xz
xesite-792be1eb55369766e0e42d82269a8bc50586693e.zip
oops lol
Signed-off-by: Xe Iaso <me@christine.website>
-rw-r--r--templates/talkindex.rs.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/talkindex.rs.html b/templates/talkindex.rs.html
index 03024d3..a7b2817 100644
--- a/templates/talkindex.rs.html
+++ b/templates/talkindex.rs.html
@@ -1,6 +1,6 @@
-
@use crate::post::Post;
@use super::{header_html, footer_html};
+@use chrono::prelude::*;
@(posts: Vec<Post>)
@@ -14,7 +14,7 @@
<p>
<ul>
- @for post in posts {
+ @for post in posts.iter().filter(|p| Utc::today().num_days_from_ce() >= p.date.num_days_from_ce()) {
<li>@post.date.format("%Y-%m-%d") - <a href="/@post.link">@post.front_matter.title</a></li>
}
</ul>