Rust library to generate static websites
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: proper licenses on website

+15 -4
+1
crates/cli/src/dev.rs
··· 50 50 async move { 51 51 if action.signals().next().is_some() { 52 52 action.quit(); 53 + return action; 53 54 } else { 54 55 info!(name: "build", "Detected changes. Rebuilding…"); 55 56 let (_, job) = action.create_job(Arc::new(Command {
+12 -3
website/src/layout.rs
··· 31 31 } 32 32 }, 33 33 true, 34 + false, 34 35 ctx, 35 36 ) 36 37 } 37 38 38 - pub fn layout(main: Markup, bottom_border: bool, ctx: &mut RouteContext) -> RenderResult { 39 + pub fn layout( 40 + main: Markup, 41 + bottom_border: bool, 42 + licenses: bool, 43 + ctx: &mut RouteContext, 44 + ) -> RenderResult { 39 45 ctx.assets.include_style("assets/prin.css", true); 40 46 41 47 html! { ··· 58 64 a.text-md.font-bold href="https://bruits.org" { 59 65 "Copyright © 2025 Bruits." 60 66 } 61 - br; 62 - a.text-sm href="https://www.netlify.com" { "Site powered by Netlify" } 67 + @if licenses { 68 + br; 69 + a.text-sm href="https://www.netlify.com" { "Site powered by Netlify" } 70 + p.text-sm {"Wax seal icon by " a href="https://game-icons.net/" { "Game-icons.net" } " under " a href="https://creativecommons.org/licenses/by/3.0/" { "CC BY 3.0" } } 71 + } 63 72 } 64 73 div { (PreEscaped(include_str!("../assets/logo.svg")))} 65 74 div.flex.gap-x-6.grow.justify-end."basis-[0]".items-center {
+2 -1
website/src/pages/index.rs
··· 23 23 layout( 24 24 html! { 25 25 div.w-full { 26 - div."lg:container".mx-auto.hero-background { 26 + div."lg:container".mx-auto.hero-background.relative { 27 27 div.px-6.py-10.mx-6.my-20 { 28 28 a.bg-our-black.text-our-white.rounded-sm.px-2.py-1.text-sm.mb-2.inline-block."hover:text-white"."hover:cursor-pointer" href=(LATEST_NEWS.1) { 29 29 (format!("{} →", LATEST_NEWS.0)) ··· 72 72 73 73 }, 74 74 false, 75 + true, 75 76 ctx, 76 77 ) 77 78 }