Cybrkyd's git repositories

page-with-py

Branch: main Last commit: 2026-01-14 08:28:07 +0000 Clone: git clone https://git.cybrkyd.com/repository/page-with-py

PaPy (Page with Python)

A Python static site generator

Using Python3:

  1. pip install markdown
  2. Copy contents of /pa-py to local directory.
  3. Drop markdown files into /post (see front matter in examples)
  4. Generate with python3 pa.py.
  5. Output is in directory /public, complete with RSS and Sitemap.

/theme files can be tweaked to preference.

Features

PaPy can do what most other static site generators can do.

View example blog

Themes

Some example themes are included. The layouts can be remixed to taste -- see the example themes for how to do this.

Theme Description
basic A basic theme with all posts displayed as a list on the main index page (newest first)
cards Same as basic, with all main index posts laid out as "cards" or "blocks (in <div> instead of <ul>)
long Same as basic, with all main index posts appearing in "long" format on the front page, i.e., the full body of each post is shown
cybr My theme, as used on https://cybrkyd.com

Licence

This project is made available under a GPL3 licence -- see COPYING for the full text.