summaryrefslogtreecommitdiff
path: root/templates/bloglist.rs.html
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2021-12-22 01:06:39 -0500
committerCara Salter <cara@devcara.com>2021-12-22 01:06:39 -0500
commit3d7cd8a7addd86b7a97a50821eb348345e0d427a (patch)
tree875aecda597c8161359005c33a147097fa36c807 /templates/bloglist.rs.html
parentc4d7f8f50d53057005d6bb28ac487f69ea45bd5e (diff)
downloadsite-3d7cd8a7addd86b7a97a50821eb348345e0d427a.tar.gz
site-3d7cd8a7addd86b7a97a50821eb348345e0d427a.zip
Work for the day
Post parsing, index page, navbar, CSS, blog listings There's something weird with the path matching that's making it miss the post view page in favor of the list view page.
Diffstat (limited to 'templates/bloglist.rs.html')
-rw-r--r--templates/bloglist.rs.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/bloglist.rs.html b/templates/bloglist.rs.html
new file mode 100644
index 0000000..98cd171
--- /dev/null
+++ b/templates/bloglist.rs.html
@@ -0,0 +1,19 @@
+@use crate::blog::post::Post;
+@use super::{header_html, footer_html};
+
+@(posts: Vec<Post>)
+
+@:header_html(Some("Posts"), None)
+
+<h1>Posts</h1>
+
+<p>
+<ul>
+ @for post in posts {
+ <li>@post.date.format("%B %d %Y") -
+ <a href="/@post.link">@post.front_matter.title</a></li>
+ }
+</ul>
+</p>
+
+@:footer_html()