hash statics

This commit is contained in:
Robert Perce 2025-12-01 15:23:56 -06:00
parent a45bf45015
commit d925573629
12 changed files with 139 additions and 1464 deletions

View file

@ -1,5 +1,6 @@
use axum::extract::State;
use axum::response::IntoResponse;
use cache_bust::asset;
use chrono::{Local, NaiveDate, TimeDelta};
use maud::{Markup, html};
use sqlx::sqlite::SqlitePool;
@ -230,7 +231,7 @@ pub mod get {
.fetch_all(pool)
.await?;
Ok(layout.render(
Some(vec!["/static/home.css", "/static/journal.css"]),
Some(vec![asset!("home.css"), asset!("journal.css")]),
html! {
(freshness_section(&freshens)?)
(birthdays_section(&prev_birthdays, &upcoming_birthdays)?)