diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/footer.rs.html | 12 | ||||
-rw-r--r-- | templates/header.rs.html | 16 | ||||
-rw-r--r-- | templates/index.rs.html | 9 |
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> |