Aerographite
Tiny lightweight static site generator written in Python that uses markdown and liquid to generate a website.
How it works
The way it works is simple by design. The aerographite script checks for a site directory, which is your website's source directory. A template site_template is provided as a submodule, which can be copied and modified for your site. The (site_directory)/templates directory contains liquid templates for generating the html skeleton of your website. Markdown is used for the webpage contents. The index.md is the markdown file that generates the front page of the website.
You can put markdown files in the site directory and have them generated as (site_directory)/(page name). You can also put html in the markdown files and it will render in the body.To customize the html outside the body use templates. For javascript you can source your scripts either in the markdown files or html template. You can also have blog-style posts by putting markdown files in the site/(posts_directory)/ directory. posts_directory is by default posts.
The name for the posts needs to be formatted as: (posts_directory)/YYYY-MM-DD-title.md.
The posts need to have a metadata header:
title: Post Title
date: YYYY-MM-DD HH:mm
Posts will be indexed in /posts which you can link in index.md or anywhere else.
The (site_directory)/files/ directory is for any miscellaneous files that get copied to the output directory out/.
The generated website is outputted to the output directory ready to be deployed to a web server or wherever.
Configuration
You can configure many things, such as blog post generation, the name of the index page, rss feed generation, and the posts directory.
To configure these things, copy the config_template.yaml to your site directory.
If you change the posts_directory you must also rename it in your site directory, since that is the directory it will look for at generation time. This will change the url where your posts are, for example if you want it to be /blog such as example.com/blog change the posts_directory to blog.
RSS Feed Generation
You can generate an RSS feed (posts_directory)/rss.xml by setting rss_feed_generation in the config.yaml to True. You need to set a site_url, language, and feed_description. If you do not set an index_page_title it uses the site_url as the RSS feed title.
Installation
If you want to install aerographite from the pip repositories, run:
$ pip3 install aerographite
If youw want to install aerographite from this repo, follow these instructions:
First you need to install the requirements:
$ pip3 install -r requirements.txt
Next, install aerographite using pip:
$ python3 -m pip install .
How to use
Provide your own site directory or use the template and modify it to your needs:
$ git submodule update --init
$ cp site-template (site_location)
Next, edit the site how you see fit.
Finally, to generate a website run:
$ aerographite (site_directory) (output_directory)
To view your website locally, run a web server:
$ python3 -m http.server -d (output_directory)
Screenshots
Here are some screenshots of the example site to demonstrate what aerographite can do.
Metadata
Release files for aerographite 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aerographite-1.0.3.tar.gz | 6.6 kB | Without provenance | Details for aerographite-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aerographite-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for aerographite-1.0.3-py3-none-any.whl |
Total release size: 13.9 kB
Release files / aerographite-1.0.3.tar.gz
| Download URL | aerographite-1.0.3.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
492fc710ab375ec0a7aafa7f276d7e96739f88277c1830c87b2835271f5086db
|
|
BLAKE2b-256 checksum How to use checksums |
5467b4aea5348814d3c7e732e0db0c3cb482d20b9db4279e8a6bf2ddc3203c3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.9
|
Release files / aerographite-1.0.3-py3-none-any.whl
| Download URL | aerographite-1.0.3-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bad08ed84886c87a2b8b6bcecac4c0af8832e12130b9c2b2fbf2281aecf71ff7
|
|
BLAKE2b-256 checksum How to use checksums |
d9a448c370861c72b6289b5d13247b1b982a8e90f93e353f077547b2822f357f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.9
|
Security for aerographite 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.