summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2021-12-19 12:48:36 -0500
committerCara Salter <cara@devcara.com>2021-12-19 12:48:36 -0500
commitc4d7f8f50d53057005d6bb28ac487f69ea45bd5e (patch)
tree34968e205ebbb97264a2df4e8951af5a01db22cb /templates
parentef01d3badb9765271a5bf55a4f0702b68f099e2e (diff)
downloadsite-c4d7f8f50d53057005d6bb28ac487f69ea45bd5e.tar.gz
site-c4d7f8f50d53057005d6bb28ac487f69ea45bd5e.zip
Add blog post parsing and templates
templates WIP, not building properly
Diffstat (limited to 'templates')
-rw-r--r--templates/footer.rs.html12
-rw-r--r--templates/header.rs.html16
-rw-r--r--templates/index.rs.html9
3 files changed, 37 insertions, 0 deletions
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 @@
+@()
+</div>
+<hr />
+<footer>
+ <blockquote>Content copyright Cara Salter 2021, based on <a
+ href="https://github.com/Xe/site">Xe/site</a>
+ under the Zlib license</blockquote>
+ <p>This server runs version @env!("GIT_SHA"), located on my <a
+ href='https://git.carathe.dev/~muirrum/site/commit/@env!("GIT_SHA")'>sourcehut</a>
+</footer>
+</body>
+</html>
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>)
+
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ @if title.is_some() {
+ <title>@title.unwrap()</title>
+ } else {
+ <title>cara salter</title>
+ }
+ </head>
+ <body>
+ <div class="container">
+
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)
+
+<link rel="canonical" href="https://devcara.com">
+Test
+</div>