diff options
| author | Cara Salter <cara@devcara.com> | 2021-12-19 12:48:36 -0500 | 
|---|---|---|
| committer | Cara Salter <cara@devcara.com> | 2021-12-19 12:48:36 -0500 | 
| commit | c4d7f8f50d53057005d6bb28ac487f69ea45bd5e (patch) | |
| tree | 34968e205ebbb97264a2df4e8951af5a01db22cb /templates | |
| parent | ef01d3badb9765271a5bf55a4f0702b68f099e2e (diff) | |
| download | site-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.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>  | 
