aboutsummaryrefslogtreecommitdiff
path: root/templates/notesindex.rs.html
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-07-10 20:29:07 +0000
committerXe Iaso <me@christine.website>2022-07-10 20:29:07 +0000
commit55bf7e4cb403566d7172ef69b8f2f7393ac8627d (patch)
tree7b3682e19c97672245cbb97e6c1d1069e812fd8b /templates/notesindex.rs.html
parentb32f5a25afb7b9901476164663c1b7099dcec7a8 (diff)
downloadxesite-55bf7e4cb403566d7172ef69b8f2f7393ac8627d.tar.xz
xesite-55bf7e4cb403566d7172ef69b8f2f7393ac8627d.zip
basic notes support
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'templates/notesindex.rs.html')
-rw-r--r--templates/notesindex.rs.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/notesindex.rs.html b/templates/notesindex.rs.html
new file mode 100644
index 0000000..c1fa08a
--- /dev/null
+++ b/templates/notesindex.rs.html
@@ -0,0 +1,14 @@
+@use crate::handlers::notes::Note;
+@use super::{header_html, footer_html};
+
+@(notes: Vec<Note>)
+
+@:header_html(Some("Notes"), None)
+
+<h1>Notes</h1>
+
+@for note in notes {
+ @Html(note.to_html().0)
+}
+
+@:footer_html()