1use maud::{Markup, html};
23pub fn common_head(title: &str) -> Markup {
4html! {
5 meta charset="utf-8";
6 meta name="viewport" content="width=device-width, initial-scale=1.0";
7 title { "Guardian Dashboard"}
8 link rel="stylesheet" href="/assets/bootstrap.min.css" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous";
9 link rel="stylesheet" type="text/css" href="/assets/style.css";
10 link rel="icon" type="image/png" href="/assets/logo.png";
1112// Note: this needs to be included in the header, so that web-page does not
13 // get in a state where htmx is not yet loaded. `deref` helps with blocking the load.
14 // Learned the hard way. --dpc
15script defer src="/assets/htmx.org-2.0.4.min.js" {}
1617 title { (title) }
18 }
19}