Skip to content

Ernyoke/ssg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssg

ssg - Static Site Generator used to generate my static site: https://ervinszilagyi.dev

Install

uvx git+https://github.com/thisdavej/wordlookup-tutorial.git

Usage

usage: ssg [-h] source destination base_path

positional arguments:

config.json content:

{
  "source": "<path to source folder>",
  "destination": "<path to destination folder>",
  "hostname": "ervinszilagyi.dev",
  "baseHref": "https://ervinszilagyi.dev",
  "meta": {
    "default": {
      "og:title": "Ervin Szilágyi - Personal site",
      "og:image": "images/glider-banner.jpg",
      "og:description": "Personal web page and blog.",
      "og:url": "https://ervinszilagyi.dev"
    },
    "matchers": [
      {
        "file": "src/resume.md",
        "action": "STATIC",
        "meta": {
          "og:title": "Resume - ervinszilagyi.dev",
          "og:description": "Ervin's resume"
        }
      },
      {
        "file": "src/index.md",
        "action": "USE_DEFAULT"
      },
      {
        "file": "src/*.md",
        "action": "TAKE_FROM_CONTENT"
      },
      {
        "file": "src/articles/*",
        "action": "TAKE_FROM_CONTENT"
      }
    ]
  },
  "frames": [
    {
      "file": "index.md",
      "frame": "articles/index_frame.html"
    },
    {
      "file": "articles/*.md",
      "frame": "articles/article_frame.html"
    },
    {
      "file": "*.md",
      "frame": "index_frame.html"
    }
  ]
}

Development

Building the app

uv build

Installing from local whl

uv install

About

Static site generator.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages