added in several workflow QOL features and updated flake

This commit is contained in:
specCon18 2023-08-07 18:04:19 -04:00
parent 153276f49c
commit bc27ffab4e
14 changed files with 3764 additions and 312 deletions

View file

@ -4,7 +4,9 @@ use crate::templates::RootTemplate;
use crate::util::HtmlTemplate;
pub async fn root() -> impl IntoResponse {
let template = RootTemplate {};
let template = RootTemplate {
name: "Steven"
};
HtmlTemplate(template)
}

View file

@ -1,3 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;

View file

@ -2,4 +2,14 @@ use askama::Template;
#[derive(Template)]
#[template(path = "root.html")]
pub struct RootTemplate;
pub struct RootTemplate<'a>{
pub name: &'a str,
}
#[derive(Template)]
#[template(path="base.html")]
pub struct BaseTemplate;
#[derive(Template)]
#[template(path="head.html")]
pub struct HeadTemplate;