From c4d7f8f50d53057005d6bb28ac487f69ea45bd5e Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sun, 19 Dec 2021 12:48:36 -0500 Subject: Add blog post parsing and templates templates WIP, not building properly --- templates/footer.rs.html | 12 ++++++++++++ templates/header.rs.html | 16 ++++++++++++++++ templates/index.rs.html | 9 +++++++++ 3 files changed, 37 insertions(+) create mode 100644 templates/footer.rs.html create mode 100644 templates/header.rs.html create mode 100644 templates/index.rs.html (limited to 'templates') diff --git a/templates/footer.rs.html b/templates/footer.rs.html new file mode 100644 index 0000000..5029544 --- /dev/null +++ b/templates/footer.rs.html @@ -0,0 +1,12 @@ +@() + +
+ + + diff --git a/templates/header.rs.html b/templates/header.rs.html new file mode 100644 index 0000000..afcf445 --- /dev/null +++ b/templates/header.rs.html @@ -0,0 +1,16 @@ +@use chrono::{DateLike, Utc}; + +@(title: Option<&str>, styles: Option<&str>) + + + + + @if title.is_some() { + @title.unwrap() + } else { + cara salter + } + + +
+ diff --git a/templates/index.rs.html b/templates/index.rs.html new file mode 100644 index 0000000..6e35935 --- /dev/null +++ b/templates/index.rs.html @@ -0,0 +1,9 @@ +@use super::{header_html} + +@() + +@:header_html(None, None) + + +Test +
-- cgit v1.2.3