Let’s talk about the Future of Jamstack — Join us

t2006

Home page
https://github.com/cinnabar-forge/t2006
Repository
cinnabar-forge/t2006
Language:
JavaScript
License:
ISC
Templates:
JSON

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.

Sample site: page and repo.

Configuration

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/" }
          ]
        }
      ]
    }
  ]
}

Usage

npx t2006 --input "path/to/json/data/files" --output "path/to/html/output"

Find more static site generators.