aboutsummaryrefslogtreecommitdiff
path: root/templates
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
parentb32f5a25afb7b9901476164663c1b7099dcec7a8 (diff)
downloadxesite-55bf7e4cb403566d7172ef69b8f2f7393ac8627d.tar.xz
xesite-55bf7e4cb403566d7172ef69b8f2f7393ac8627d.zip
basic notes support
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'templates')
-rw-r--r--templates/notepost.rs.html28
-rw-r--r--templates/notesindex.rs.html14
2 files changed, 42 insertions, 0 deletions
diff --git a/templates/notepost.rs.html b/templates/notepost.rs.html
new file mode 100644
index 0000000..4af995b
--- /dev/null
+++ b/templates/notepost.rs.html
@@ -0,0 +1,28 @@
+@use super::{header_html, footer_html};
+@use crate::handlers::notes::Note;
+
+@(note: Note)
+
+@:header_html(Some(&format!("Note written at {}", note.detrytemci())), None)
+
+<!-- Twitter -->
+<meta name="twitter:card" content="summary" />
+<meta name="twitter:site" content="@@theprincessxena" />
+<meta name="twitter:title" content="@note.detrytemci()" />
+
+<!-- Facebook -->
+<meta property="og:type" content="website" />
+<meta property="og:title" content="@note.detrytemci()" />
+<meta property="og:site_name" content="Xe's Notes" />
+
+<!-- Description -->
+<meta name="description" content="@note.detrytemci() - Xe's Notes" />
+<meta name="author" content="Xe Iaso">
+
+<link rel="canonical" href="https://xeiaso.net/notes/@note.id" />
+
+<h1>Note written at @note.detrytemci()</h1>
+
+@Html(note.to_html().0)
+
+@:footer_html()
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()