--- name: static-site description: "Static website standards (plain HTML/CSS/JS or a static-site generator): performance, SEO, and deployment. Use when building or reviewing a static site." metadata: applies-to: "**/*.html, **/index.html, **/astro.config.*, **/eleventy.config.*, **/.eleventy.js, **/_config.yml, **/hugo.toml, **/hugo.yaml, **/config.toml" --- # Static Site Instructions Guidance for a site that ships as pre-rendered HTML/CSS/JS with no application server at runtime — a personal site, portfolio, landing page, or blog — whether hand-written or built with a static-site generator (Astro, Eleventy, Hugo, Jekyll, plain HTML). Apply `.plaesy/instructions/ui-ux-design-principles.md` (hierarchy, feedback, affordance, navigation, information architecture) to every page — this file covers build/deploy mechanics, not interaction design. ## Project Context - No backend process serves requests at runtime; the build step (if any) produces a folder of static files an edge/CDN host serves directly - Pick a generator only when templating/content-reuse actually earns its complexity — a handful of hand-written HTML pages sharing a `` partial via the host's include mechanism (or a tiny build script) is a legitimate, simpler choice than pulling in a generator for a 3-page personal site - Common generators and when they fit: **Astro** (component islands, mixed content + interactivity), **Eleventy** (content-heavy, minimal opinion), **Hugo** (large content volume, build speed matters), **Jekyll** (GitHub Pages native support, blog-first) ## Development Standards ### Structure & Content - One canonical source per page — if using a generator, content lives in its content directory (Markdown/frontmatter), not hand-duplicated across pages - Use semantic HTML5 landmarks (`
`, `