Static Site
Use this skill to create a new site crate with the smallest baseline that still runs.
Inputs
- Required: site slug, for example
acme-site - Optional: site title, port, base URL
Workflow
- Run
scripts/new_static_site.sh <slug> [title] [port] [base-url]. - Review the generated crate in
crates/<slug>. - Validate with
cargo check -p <slug>. - If needed, run
cargo run -p <slug>.
What The Template Includes
src/main.rs,src/generator.rs,src/pages/index.rs,src/ui_links.rs- one starter blog post
- one starter docs section using the full docs/document-site layout
assets/copy-paste.jsandassets/goat-counter.jscloudflare-build.shinput.css
Notes
- The script also adds the new crate to the workspace
Cargo.toml. - Keep the generated crate generic first. Brand-specific redesign work should happen after scaffold.