crabmail

Static HTML email archive viewer in Rust
git clone git://git.alexwennerberg.com/crabmail
Log | Files | Refs | README | LICENSE

commit fcc97fa3bf769b485005b2cb2dad5f2a6157cd70
parent 5a9df96d13c246454004dad1263f0110fc53651b
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Tue, 14 Dec 2021 21:39:42 -0800

get css working

Diffstat:
Mrun.sh | 4----
Msrc/main.rs | 4+++-
2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/run.sh b/run.sh @@ -1,4 +0,0 @@ - rm -rf site \ - && cargo build \ - && ./target/debug/crabmail -m $1 \ - && cp templates/static/style.css site/ && cp templates/static/style.css site/threads/ diff --git a/src/main.rs b/src/main.rs @@ -278,7 +278,9 @@ fn main() -> Result<()> { .as_bytes(), ) .ok(); - + // kinda clunky + std::fs::copy("templates/static/style.css", out_dir.join("style.css"))?; + std::fs::copy("templates/static/style.css", thread_dir.join("style.css"))?; Ok(()) }