Examples
Three runnable examples are included in the forge GitHub repository. Each runs with git clone https://github.com/forge-cms/forge && cd example/<name> && go run .
example/blog
A devlog with seeded posts demonstrating the full content lifecycle.
| Feature | What it shows |
|---|---|
| Content lifecycle | Draft, Scheduled, and Published posts with automatic transitions |
| HTML templates | List and show pages with forge:head, Open Graph, Twitter Cards |
| RSS feed | /posts/feed.xml and aggregate /feed.xml |
| Sitemap | Auto-generated, event-driven |
| AI indexing | /llms.txt, /llms-full.txt, and per-post /aidoc |
| Signals | AfterPublish hook logging every publish event |
example/api
A headless JSON API with role-based auth and a redirect manifest.
example/docs
A documentation site with AI indexing, /llms.txt, and AIDoc endpoints.