This repository is an example static site that uses the Astrodon framework. It demonstrates how to structure content, run builds, serve locally, and leverage Lua-powered interpolation within Markdown.
- Library usage: See
build.tsandserve.ts, which importbuildandservefromastrodon. - Content: All pages live under
routes/as Markdown files with YAML frontmatter. - Lua interpolation: Markdown can include
{{lua:...}}expressions resolved by Astrodon (e.g.,{{lua:current_time:friendly}}). - Assets: Static assets are under
assets/and copied todist/on build.
-
Ensure Deno is installed.
-
Build the site:
deno run -A build.ts
-
Serve the built site:
deno run -A serve.ts
-
Open
http://localhost:8000.
blog/
├── routes/ # Markdown content with frontmatter and optional Lua
├── assets/ # Static assets
├── dist/ # Build output (generated)
├── build.ts # Uses Astrodon.build
├── serve.ts # Uses Astrodon.serve
└── deno.json # Import map, tasks
- For more details on the framework itself, see the Astrodon README in the framework repo.
- Image optimization and performance benchmarking are optional; enable them as needed.