diff options
author | Cara Salter <cara@devcara.com> | 2021-12-22 01:06:39 -0500 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2021-12-22 01:06:39 -0500 |
commit | 3d7cd8a7addd86b7a97a50821eb348345e0d427a (patch) | |
tree | 875aecda597c8161359005c33a147097fa36c807 /src/misc/mod.rs | |
parent | c4d7f8f50d53057005d6bb28ac487f69ea45bd5e (diff) | |
download | site-3d7cd8a7addd86b7a97a50821eb348345e0d427a.tar.gz site-3d7cd8a7addd86b7a97a50821eb348345e0d427a.zip |
Work for the day
Post parsing, index page, navbar, CSS, blog listings
There's something weird with the path matching that's making it miss the
post view page in favor of the list view page.
Diffstat (limited to 'src/misc/mod.rs')
-rw-r--r-- | src/misc/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/misc/mod.rs b/src/misc/mod.rs new file mode 100644 index 0000000..5942b8c --- /dev/null +++ b/src/misc/mod.rs @@ -0,0 +1,10 @@ +pub mod handlers { + use color_eyre::Result; + use warp::{Reply, Rejection, http::Response}; + use crate::templates::{self, Html, RenderRucte}; + + pub async fn index() -> Result<impl Reply, Rejection> { + Response::builder() + .html(|o| templates::index_html(o)) + } +} |