Statico
Plain HTML in, fast static sites out. One binary: no framework, no Node, no template language to learn.
Contents
-
1Getting started
- 1IntroductionWhat Statico is, what it is for, and why it stays plain HTML.
- 2InstallOne binary for macOS, Linux and Windows; the install script, release downloads, or a build from source.
- 3Quick startCreate a site from a template, preview it, check it, and build it.
- 4Project structureThe folders of a Statico site and what each one is for.
-
2Building pages
- 5LayoutsWrap pages in shared shells, pass them attributes, and nest layouts.
- 6IncludesReusable pieces of HTML, with attributes, in pages, layouts and markdown.
- 7PlaceholdersInsert front matter, site settings, collections and URLs with {braces}.
- 8FiltersFormat dates, truncate, slugify and more, right inside a placeholder.
- 9LoopsRepeat markup over collections and markdown content with the ForEach tag.
- 10ConditionsShow markup only when a condition holds, with a safe expression language.
-
3Content and data
- 11Markdown contentWrite pages in markdown with front matter, drafts and tables of contents.
- 12CollectionsData from JSON, YAML, TOML or CSV files, ready to loop over.
- 13PaginationSplit long lists across pages, with links between them.
- 14TaxonomiesOne page per tag, category or any other front matter field.
- 15FeedsAtom feeds for your content folders, written automatically.
- 16SEOMeta tags, Open Graph, Twitter cards and JSON-LD from one placeholder.
- 17SchemasValidate front matter per content folder, so mistakes fail the build.
-
4Build and deploy
- 18BuildingWhat statico build writes: pages, assets, sitemap, feeds, search and more.
- 19ConfigurationEvery statico.json setting, all of them optional.
- 20TemplatesThe starter templates in the binary, and using any repository or folder.
- 21Command lineEvery statico command, its flags and its exit codes.
- 22DeployingPublishing to GitHub Pages, including project sites under a sub-path, and to any other static host.
-
5Reference