Documentation
How to build a static site with Rista, from an empty directory to nginx.
- Getting started
- Install the gem, write a layout and a page, and build the site.
- Site layout
- Which file becomes which URL, and where everything else goes.
- Layouts and pages
- The props every page receives, nested layouts, titles and components.
- Dynamic routes
- A route with params lists the pages to write in static_params.
- Markdown
- Markdown files are modules with front matter. Pages import and render them.
- Styling
- Stylesheets scoped to a template, :global for the rest, and a light and dark theme.
- Tags and other groupings
- Tag pages, archives and categories are dynamic routes over one shared module.
- Feeds, sitemaps and 404 pages
- Route handlers that write files, the site metadata, the sitemap and not-found pages.
- Google Fonts
- Import a font from Google Fonts and the build serves it from the site.
- Deploying with nginx
- Generate an nginx config for the built site, and build both into a Docker image.
- Cloudflare and GitHub Pages
- Set a site up for free hosting with one command, and deploy it on every push.
- Limits
- What Rista does not do yet, and what to do about it.