Skip to main content

Static site generator built with python

Project description

pyssgen

PyPI version

pyssgen is a lightweight alternative to hugo and other static site generators. I used it to build my static blog and included the templates and css that I use along with it.

Please note that it's only a side project and might not be suitable for bigger websites.

Installation

via pip (recommended)

>>> pip install --user pyssgen

Usage

if installed with pip

>>> python3 -m pyssgen <input-dir> <output-dir> <templates-dir>

templates

In order for pyssgen to work you need to provide a templates/ directory containing:

If you don't know how to write templates using jinja, you can copy the premade templates folder.

css

static/ folder will be created automatically in parent directory if it doesn't already exist, you can place your styles.css inside dist/static. Otherwise, the pages won't have styling. If you are not sure how to work with css, you can copy the css from this repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyssgen-1.0.5.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

pyssgen-1.0.5-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page