dashboard for your PDS
at main 656 B view raw
1use fun_html::{Document, Element, attr::*, conv::*, html}; 2 3const HTMX_SRC: &str = "https://unpkg.com/htmx.org@2"; 4const MATCHA_SRC: &str = "https://matcha.mizu.sh/matcha.lite.css"; 5 6pub fn tmpl(children: Element) -> Document { 7 html( 8 [lang("en")], 9 [ 10 head([ 11 title("sightline"), 12 meta(charset_utf8()), 13 meta([ 14 name("viewport"), 15 content("width=device-width, initial-scale=1.0"), 16 ]), 17 script(HTMX_SRC), 18 link_stylesheet(MATCHA_SRC), 19 ]), 20 body(children), 21 ], 22 ) 23}