Static website generator
Project description
Page, a static website generator
- creates a well organized website with clear navigation reflecting the folder structure of source text documents
- fast, well compressed, mobile friendly pages
- feed and sitemap files for your subscribers and search engines
- import from any CMS DB (inc. Wordpress), import HTML sites
Writers love distraction free conventional plain text formatting. Template designers love the easy to read, beautiful and powerful template language.
Installation and run
Page is a small command line program written in Python programming language. It requires python installed, which lets user install Page on any platform in a single command.
pip install page
By default, Page will collect all text files in current folder and create a HTML website in a static folder using default templates. Run the program
page
it will look for a config file
./page.yml
with custom options.
source: /markdown/source/folder/
target: /target/folder/
tpl: /custom/template/folder/
ext: '' # or '.htm'
ctx:
site_name: 'My Site'
site_url: https://example.org
Batteries included
Minimal default template.
Page has lots of tests including one importing an existing HTML site, converting it to source markdown files and then back into a static HTML site in full circle. This code can inspire users to convert existing static site or one powered by a slow Content Management System to simple markdown powered static site and maintain it with Page.
Programmers using Djagno Web Framework can make their sites faster and less demanding using static cache generation helpers provided, see static.py.
E-commerce features for static shops (cart, checkout, persistence) implemented as a shop template
Example websites using page with sources
- Normy Jedal/Dish standards in Slovak language [sources]
- Sip Sip — Herbal Medicine in Slovak language [sources]
- Blocl activist literature, blog, privacy policy [sources]
Note: public repositories for projects using page begin with word "revisions" to prevent them from being indexed in public search engines as per github.com/robots.txt
Designed in Slovakia by Francis Malina.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file page-0.2.1.tar.gz
.
File metadata
- Download URL: page-0.2.1.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 458fd3a9b5395232544d9814aa8cd4c519ef11d58f6699a194b88d191f86d8f8 |
|
MD5 | 380a2f9b5a2a9512e887bc8a7db059f0 |
|
BLAKE2b-256 | be4518da6ddc2bf92b4ee4f19a6fbcc984c28b19330288f8fa1a0bf0689e37f9 |
File details
Details for the file page-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: page-0.2.1-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69b055f365c8926c6185b061d9cec173933101ca29fc2a68336f9afd32d57b02 |
|
MD5 | 92dc658a4f362e7df539f066179b64a1 |
|
BLAKE2b-256 | 113ab2fb35c5fe2d983b473176530d9b4414e6b7e65bc19ef5d340dd3909970e |