| title | t2006 | |
|---|---|---|
| repo | cinnabar-forge/t2006 | |
| homepage | https://github.com/cinnabar-forge/t2006 | |
| language |
|
|
| license |
|
|
| templates |
|
|
| description | A small, low-opinionated static site generator with sections and items |
A small, low-opinionated static site generator with sections and items.
You can change sections quantity, text, images, colors (dark-theme ready) and fonts for headers and text.
t2006 is driven by two main configuration files:
data.json: Defines the structure and content of your site.style.json: Specifies the visual styling of your site.
Both files examples can be found inside sample folder.
data.json structure:
{
"title": "Title text",
"description": "HTML meta description text",
"header": {
"image": "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/why.svg",
"title": "TITLE TEXT",
"subtitle": "Subtitle text",
"about": "About text"
},
"sections": [
{
"title": "SECTION TEXT",
"items": [
{
"name": "Line example",
"image": {
"path": "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/beacon.svg"
},
"links": [
{ "text": "link", "url": "https://example.com/" }
],
"extra": "extra info"
},
{
"name": "Card example",
"text": "If you need description",
"links": [
{ "text": "foo", "url": "https://example.com/" },
{ "text": "bar", "url": "https://example.com/" }
]
}
]
}
]
}npx t2006 --input "path/to/json/data/files" --output "path/to/html/output"