extract language

This commit is contained in:
2025-08-03 09:32:31 +02:00
parent 9919ae93c2
commit ba20e80873
3 changed files with 74 additions and 3 deletions

View File

@@ -1,7 +1,10 @@
use crate::page::new;
use crate::{language::language, page::new};
use axum::http::HeaderMap;
use axum_extra::extract::CookieJar;
use maud::{html, Markup};
pub(super) async fn index() -> Markup {
pub(super) async fn index(cookies: CookieJar, headers: HeaderMap) -> Markup {
let lang = language(&cookies, &headers);
new(html! {
h1 { "Digital Shadows" }
hgroup {