Leger Svelte Themes

Leger

Lightweight Static Site Generator (SSG) built with Svelte & Vite

Léger

Lightweight Static Site Generator (SSG) built with Svelte & Vite, shipped with no dependencies.

Target transpiling pipeline

graph
    Dir[Local directory] --> Files(.leg files)
    Dir[Local directory] --> Config(leger.config.js)
    Files -- transpile --> HTML{.html}
    Config -- configure --> HTML
    Leger[Leger] -- webComponents --> HTML
    HTML -- build --> StaticHTML(Static HTML)
    HTML -- dev --> HMR(Local dev server)

Todo

  • Favicon support
    • Need to support local assets copied into build folder
  • more components
    • Header
    • Title
    • Image
    • Footer
    • Button
  • better frontmatter
    • map with each supported option
    • throws error if unknown frontmatter key
  • markdown support
  • custom svelte support
  • mixin support
  • better parsing
    • allow nested trailing text
  • add cli options (in/out)
    • from cli
    • from leger.config.js
  • Write documentation
    • Automate component documentation
    • Automate frontmatter documentation

Example .leg file

section(columns="2")
    text(size="large") This is awesome
    text(size="small") ... and this might be too small
button() Sign up

Example full .leg file with metadata

---
title: My own leger website
description: You can write here some custom description
siteName: My Own Site with Leger
---

text(size=xl) Hello, Leger

Top categories

Loading Svelte Themes