sigwin/yassg

Yet Another Static Site Generator

1.0.0 2024-02-09 10:44 UTC

README

Start building a static site powered by Twig and Encore.

Use a YAML database to organize routes and data.

Get started

  1. create an empty folder

    mkdir yassg-test && cd yassg-test
  2. require the package

    composer require sigwin/yassg
  3. init the project

    vendor/sigwin/yassg/bin/yassg yassg:init
  4. run a dev server:

    make start/dev

Build the site

Pass the base URL to build

BASE_URL=https://example.com/subdir make build/clean

The output will be in the public/ folder, the contents of which needs to be deployed to the BASE_URL.

Pages CI setup

Includes Gitlab CI / Gitlab Pages setup.