- Install deps:
npm install(ormise run build/server/server-local, which depends oninstall). - Dev server:
npm run serverruns the example site through Portless athttps://nerdy.localhost. - Direct Hugo server without Portless:
npm run server:localserveshttp://localhost:1313. - Production verification:
npm run build; there are no separate lint/test scripts inpackage.json. - Prefer npm scripts over raw
hugosonode_modules/.binis onPATHandhugo_stats.jsonexists before Tailwind compiles. - Optional mise equivalents:
mise run server,mise run server-local,mise run build; mise also prepends./node_modules/.bintoPATH.
- Root files are the reusable Hugo theme;
exampleSite/is the live demo and documentation site. exampleSite/hugo.yamlimportsgithub.com/hugo-themes/nerdywithmodule.replacements: github.com/hugo-themes/nerdy -> ../..; keep this local-module wiring intact.- Docs are authored as posts under
exampleSite/content/posts/, using subject/topic/series folders; keep docs user-focused, not maintainer release checklists. - The home page is data-driven from
exampleSite/data/home/*,exampleSite/data/sidebar.yaml, andexampleSite/data/terminal/*.
- Tailwind sources include
hugo_stats.json,assets/js/**/*.js,layouts/**/*.html, anddata/**/*.{yaml,yml}fromassets/css/main.css; changing generated class locations may require updating sources. layouts/_partials/site/assets/css.htmlprocesses bothcss/main.cssand optional sitecss/custom.cssthrough Hugo'scss.TailwindCSS; production builds fingerprint assets.- Home section
typevalues map tolayouts/_partials/home/sections/<type>.html; sidebar section types map tolayouts/_partials/home/sidebar/<type>.html; invalid or missing types intentionally fail the Hugo build. - Terminal command data under
data/terminal/commands/<name>.yamlmust have a matching partiallayouts/_partials/terminal/commands/<name>.html. - Post layouts infer subject/topic/series primarily from folder structure; front matter labels are for clearer cards/breadcrumbs.
- Do not commit generated output:
public/,resources/_gen/,.hugo_build.lock,hugo_stats.json, ornode_modules/. - Cloudflare/Wrangler serves static assets from
exampleSite/public; build it withnpm run buildfirst.